#4C5212#4C5212

#4C5212 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.32:1 contrast (WCAG AA passes).

Color values

HEX#4C5212
RGBrgb(76, 82, 18)
HSLhsl(66, 64%, 20%)
HSVhsv(66, 78%, 32%)
CMYKcmyk(7.3%, 0%, 78%, 67.8%)
CIE-LABlab(33.17, -11.67, 34.59)
CIE-LCHlch(33.17, 36.50, 108.64°)
OKLaboklab(41.99% -0.0354 0.0768)
OKLCHoklch(41.99% 0.085 114.8)
XYZxyz(6.1071, 7.6149, 1.7202)
Luminance0.0761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5212 #181252
analogous
#523812 #4C5212 #2C5212
triadic
#4C5212 #124C52 #52124C
tetradic
#4C5212 #125238 #181252 #52122C
square
#4C5212 #125238 #181252 #52122C
split-complementary
#4C5212 #122C52 #381252
monochromatic
#171906 #1D2007 #4C5212 #7B841D #A9B628

Accessibility & contrast

On white

8.32
#4C5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C5212
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5212#FFFFFF#000000##FFFFFF
##4C52121.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c5212;
/* rgb */ color: rgb(76, 82, 18);
/* oklch */ color: oklch(42.0% 0.085 114.8);
Tailwind
colors: {
  custom: {
    50: '#808255',
    500: '#4c5212',
    950: '#000000',
  },
}
SCSS
$custom: #4c5212;
$custom-light: #808255;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5212",
  "rgb": {
    "r": 76,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 65.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.08458,
    "h": 114.8
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#4C5212
secondary
#3D358B
accent
#41E750
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C5212

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

Preview Lab → · Contrast checker → · Palette generator →

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