#4C520E#4C520E

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

Color values

HEX#4C520E
RGBrgb(76, 82, 14)
HSLhsl(65, 71%, 19%)
HSVhsv(65, 83%, 32%)
CMYKcmyk(7.3%, 0%, 82.9%, 67.8%)
CIE-LABlab(33.14, -11.88, 36.12)
CIE-LCHlch(33.14, 38.03, 108.21°)
OKLaboklab(41.96% -0.0364 0.0792)
OKLCHoklch(41.96% 0.087 114.7)
XYZxyz(6.0772, 7.6029, 1.5627)
Luminance0.0760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C520E #140E52
analogous
#52360E #4C520E #2A520E
triadic
#4C520E #0E4C52 #520E4C
tetradic
#4C520E #0E5236 #140E52 #520E2A
square
#4C520E #0E5236 #140E52 #520E2A
split-complementary
#4C520E #0E2A52 #360E52
monochromatic
#181A04 #1C1E05 #4C520E #7C8617 #ADBB20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C520E#FFFFFF#000000##FFFFFF
##4C520E1.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)
#594D01
Deuteranopia (green-blind)
#584F14
Tritanopia (blue-blind)
#524D45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c520e;
/* rgb */ color: rgb(76, 82, 14);
/* oklch */ color: oklch(42.0% 0.087 114.7);
Tailwind
colors: {
  custom: {
    50: '#818253',
    500: '#4c520e',
    950: '#000000',
  },
}
SCSS
$custom: #4c520e;
$custom-light: #818253;
$custom-dark: #000000;
JSON
{
  "hex": "#4c520e",
  "rgb": {
    "r": 76,
    "g": 82,
    "b": 14
  },
  "hsl": {
    "h": 65.294,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.08722,
    "h": 114.7
  },
  "luminance": 0.07603
}

Semantic roles & 50–950 ramp

primary
#4C520E
secondary
#382F8C
accent
#3AEE4A
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4C520E

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

Preview Lab → · Contrast checker → · Palette generator →

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