#4D520F#4D520F

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

Color values

HEX#4D520F
RGBrgb(77, 82, 15)
HSLhsl(64, 69%, 19%)
HSVhsv(64, 82%, 32%)
CMYKcmyk(6.1%, 0%, 81.7%, 67.8%)
CIE-LABlab(33.24, -11.34, 35.87)
CIE-LCHlch(33.24, 37.62, 107.54°)
OKLaboklab(42.06% -0.0349 0.0789)
OKLCHoklch(42.06% 0.086 113.9)
XYZxyz(6.1643, 7.6470, 1.6031)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D520F #140F52
analogous
#52360F #4D520F #2C520F
triadic
#4D520F #0F4D52 #520F4D
tetradic
#4D520F #0F5236 #140F52 #520F2C
square
#4D520F #0F5236 #140F52 #520F2C
split-complementary
#4D520F #0F2C52 #360F52
monochromatic
#181A05 #1C1E06 #4D520F #7E8618 #AEB922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D520F#FFFFFF#000000##FFFFFF
##4D520F1.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)
#594E02
Deuteranopia (green-blind)
#594F15
Tritanopia (blue-blind)
#534D45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d520f;
/* rgb */ color: rgb(77, 82, 15);
/* oklch */ color: oklch(42.1% 0.086 113.9);
Tailwind
colors: {
  custom: {
    50: '#818254',
    500: '#4d520f',
    950: '#000000',
  },
}
SCSS
$custom: #4d520f;
$custom-light: #818254;
$custom-dark: #000000;
JSON
{
  "hex": "#4d520f",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 64.478,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.42057,
    "c": 0.08625,
    "h": 113.9
  },
  "luminance": 0.07647
}

Semantic roles & 50–950 ramp

primary
#4D520F
secondary
#38318C
accent
#3CEC49
background
#F8F7F5
surface
#EFEEE8
border
#CAC9C4
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D520F

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

Preview Lab → · Contrast checker → · Palette generator →

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