#4D5212#4D5212

#4D5212 is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.1% C 0.084 H 113.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#4D5212
RGBrgb(77, 82, 18)
HSLhsl(65, 64%, 20%)
HSVhsv(65, 78%, 32%)
CMYKcmyk(6.1%, 0%, 78%, 67.8%)
CIE-LABlab(33.26, -11.18, 34.70)
CIE-LCHlch(33.26, 36.46, 107.85°)
OKLaboklab(42.08% -0.0341 0.077)
OKLCHoklch(42.08% 0.084 113.9)
XYZxyz(6.1872, 7.6562, 1.7240)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5212 #171252
analogous
#523712 #4D5212 #2D5212
triadic
#4D5212 #124D52 #52124D
tetradic
#4D5212 #125237 #171252 #52122D
square
#4D5212 #125237 #171252 #52122D
split-complementary
#4D5212 #122D52 #371252
monochromatic
#181906 #1E2007 #4D5212 #7C841D #ABB628

Accessibility & contrast

On white

8.30
#4D5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4D5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5212
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5212#FFFFFF#000000##FFFFFF
##4D52121.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#584F17
Tritanopia (blue-blind)
#534D46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d5212;
/* rgb */ color: rgb(77, 82, 18);
/* oklch */ color: oklch(42.1% 0.084 113.9);
Tailwind
colors: {
  custom: {
    50: '#818255',
    500: '#4d5212',
    950: '#000000',
  },
}
SCSS
$custom: #4d5212;
$custom-light: #818255;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5212",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 64.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.08424,
    "h": 113.9
  },
  "luminance": 0.07656
}

Semantic roles & 50–950 ramp

primary
#4D5212
secondary
#3C358B
accent
#41E74E
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D5212

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

Preview Lab → · Contrast checker → · Palette generator →

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