#4E5122#4E5122

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

Color values

HEX#4E5122
RGBrgb(78, 81, 34)
HSLhsl(64, 41%, 23%)
HSVhsv(64, 58%, 32%)
CMYKcmyk(3.7%, 0%, 58%, 68.2%)
CIE-LABlab(33.18, -8.85, 26.84)
CIE-LCHlch(33.18, 28.27, 108.24°)
OKLaboklab(42.09% -0.0258 0.0629)
OKLCHoklch(42.09% 0.068 112.3)
XYZxyz(6.3732, 7.6202, 2.6482)
Luminance0.0762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5122 #252251
analogous
#513D22 #4E5122 #365122
triadic
#4E5122 #224E51 #51224E
tetradic
#4E5122 #22513D #252251 #512236
square
#4E5122 #22513D #252251 #512236
split-complementary
#4E5122 #223651 #3D2251
monochromatic
#151609 #242610 #4E5122 #787C34 #A1A746

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E5122#FFFFFF#000000##FFFFFF
##4E51221.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)
#574D1D
Deuteranopia (green-blind)
#574F25
Tritanopia (blue-blind)
#534C46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e5122;
/* rgb */ color: rgb(78, 81, 34);
/* oklch */ color: oklch(42.1% 0.068 112.3);
Tailwind
colors: {
  custom: {
    50: '#81815f',
    500: '#4e5122',
    950: '#000000',
  },
}
SCSS
$custom: #4e5122;
$custom-light: #81815f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5122",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 34
  },
  "hsl": {
    "h": 63.83,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42089,
    "c": 0.06797,
    "h": 112.3
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#4E5122
secondary
#4E4A85
accent
#57D15F
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A04
muted
#7C7C79

Preview Lab

Preview with #4E5122

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

Preview Lab → · Contrast checker → · Palette generator →

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