#4C5211#4C5211

#4C5211 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.085 H 114.8°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#4C5211
RGBrgb(76, 82, 17)
HSLhsl(66, 66%, 19%)
HSVhsv(66, 79%, 32%)
CMYKcmyk(7.3%, 0%, 79.3%, 67.8%)
CIE-LABlab(33.16, -11.72, 34.99)
CIE-LCHlch(33.16, 36.90, 108.52°)
OKLaboklab(41.98% -0.0357 0.0775)
OKLCHoklch(41.98% 0.085 114.8)
XYZxyz(6.0991, 7.6117, 1.6781)
Luminance0.0761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5211 #171152
analogous
#523811 #4C5211 #2C5211
triadic
#4C5211 #114C52 #52114C
tetradic
#4C5211 #115238 #171152 #52112C
square
#4C5211 #115238 #171152 #52112C
split-complementary
#4C5211 #112C52 #381152
monochromatic
#171905 #1D1F06 #4C5211 #7B851C #AAB726

Accessibility & contrast

On white

8.33
#4C5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4C5211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5211
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5211#FFFFFF#000000##FFFFFF
##4C52111.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D05
Deuteranopia (green-blind)
#584F16
Tritanopia (blue-blind)
#514D46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c5211;
/* rgb */ color: rgb(76, 82, 17);
/* oklch */ color: oklch(42.0% 0.085 114.8);
Tailwind
colors: {
  custom: {
    50: '#808254',
    500: '#4c5211',
    950: '#000000',
  },
}
SCSS
$custom: #4c5211;
$custom-light: #808254;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5211",
  "rgb": {
    "r": 76,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 65.538,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.41978,
    "c": 0.08529,
    "h": 114.8
  },
  "luminance": 0.07612
}

Semantic roles & 50–950 ramp

primary
#4C5211
secondary
#3C348B
accent
#3FE94F
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C5211

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4C5211 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva