#4D520B#4D520B

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

Color values

HEX#4D520B
RGBrgb(77, 82, 11)
HSLhsl(64, 76%, 18%)
HSVhsv(64, 87%, 32%)
CMYKcmyk(6.1%, 0%, 86.6%, 67.8%)
CIE-LABlab(33.21, -11.53, 37.26)
CIE-LCHlch(33.21, 39.00, 107.19°)
OKLaboklab(42.03% -0.0358 0.081)
OKLCHoklch(42.03% 0.089 113.8)
XYZxyz(6.1385, 7.6367, 1.4672)
Luminance0.0764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D520B #100B52
analogous
#52330B #4D520B #29520B
triadic
#4D520B #0B4D52 #520B4D
tetradic
#4D520B #0B5233 #100B52 #520B29
square
#4D520B #0B5233 #100B52 #520B29
split-complementary
#4D520B #0B2952 #330B52
monochromatic
#191B04 #1A1C04 #4D520B #808812 #B2BE19

Accessibility & contrast

On white

8.31
#4D520B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D520B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D520B#FFFFFF#000000##FFFFFF
##4D520B1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594D00
Deuteranopia (green-blind)
#594F12
Tritanopia (blue-blind)
#534C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d520b;
/* rgb */ color: rgb(77, 82, 11);
/* oklch */ color: oklch(42.0% 0.089 113.8);
Tailwind
colors: {
  custom: {
    50: '#828252',
    500: '#4d520b',
    950: '#000000',
  },
}
SCSS
$custom: #4d520b;
$custom-light: #828252;
$custom-dark: #000000;
JSON
{
  "hex": "#4d520b",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 11
  },
  "hsl": {
    "h": 64.225,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.08856,
    "h": 113.8
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

primary
#4D520B
secondary
#322B8E
accent
#35F342
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0A02
muted
#7C7C78

Preview Lab

Preview with #4D520B

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

Preview Lab → · Contrast checker → · Palette generator →

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