Skip to content

Traffic Gray B (#4E5451)

The hex code for Traffic Gray B is #4E5451. It is rgb(78, 84, 81) in RGB, hsl(150, 4%, 32%) in HSL, and about cmyk(7%, 0%, 4%, 67%) in CMYK — a dark gray. White text is the more readable choice on this background.

#4E5451
HEX#4E5451
RGBrgb(78, 84, 81)
HSLhsl(150, 4%, 32%)
HSVhsv(150, 7%, 33%)
CMYKcmyk(7%, 0%, 4%, 67%)
OKLCHoklch(43.9% 0.009 164.6)
LABlab(35.10% -2.98 0.89)
LCHlch(35.10% 3.11 163.37)

Colors Closest to Traffic Gray B

Traffic Gray B is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every gray in the library.

#4E5451 Channel Values

How Traffic Gray B breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 78 · G 84 · B 818-bit channels as sent to the display
HSLH 150° · S 4% · L 32%Easiest model for building lighter and darker variants
HSVH 150° · S 7% · V 33%Matches the picker in most design tools
CMYKC 7% · M 0% · Y 4% · K 67%Approximate ink mix; confirm with an ICC profile before printing
Luminance7.75:1 vs white · 2.71:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Traffic Gray B background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text7.75:1AA normal AA large AAA normal
TextBlack text2.71:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #4E5451 in the contrast checker.

Colors That Go With Traffic Gray B

Pairings derived from color-wheel relationships. The complementary color sits opposite Traffic Gray B; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Traffic Gray B

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #4E5451.

How Traffic Gray B Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#4E5451
Protanopia#535351
Protanomaly#515351
Deuteranopia#525251
Deuteranomaly#505351
Tritanopia#4E5454
Tritanomaly#4E5453
Achromatopsia#535353

Test a full palette in the color blindness simulator.

Using #4E5451 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--traffic-gray-b: #4E5451;
CSS backgroundbackground-color: #4E5451;
Tailwind configcolors: { 'traffic-gray-b': '#4E5451' }
SwiftUIColor(red: 0.306, green: 0.329, blue: 0.318)
Android XML<color name="traffic_gray_b">#4E5451</color>
SVG fillfill="#4E5451"

More Gray Colors

Traffic Gray B sits in the grayfamily. These are its neighbours across that family's full range, each with its own breakdown.

#4E5451 Frequently Asked Questions

What is the hex code for Traffic Gray B?

The hex code for Traffic Gray B is #4E5451. That is rgb(78, 84, 81) in RGB, hsl(150, 4%, 32%) in HSL, and approximately cmyk(7%, 0%, 4%, 67%) in CMYK.

What is the RGB value of #4E5451?

#4E5451 is rgb(78, 84, 81) — red 78, green 84, and blue 81 on the 0-255 scale.

What is the CMYK value of #4E5451?

#4E5451 converts to approximately cmyk(7%, 0%, 4%, 67%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #4E5451 be black or white?

White text is the more readable choice. #4E5451 scores 7.75:1 against white and 2.71:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #4E5451 as a CSS color keyword?

No. #4E5451 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is dimgray (#696969) at a CIE76 distance of 9.82, which is clearly related but distinguishable side by side.

Open Traffic Gray B in a Tool

Keep exploring: every gray in the color library, the guide to shades of gray, or the full color library.