#4E5812#4E5812

#4E5812 is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 43.7% C 0.092 H 117.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4E5812
RGBrgb(78, 88, 18)
HSLhsl(69, 66%, 21%)
HSVhsv(69, 80%, 35%)
CMYKcmyk(11.4%, 0%, 79.5%, 65.5%)
CIE-LABlab(35.29, -14.10, 36.69)
CIE-LCHlch(35.29, 39.30, 111.03°)
OKLaboklab(43.73% -0.0423 0.0812)
OKLCHoklch(43.73% 0.092 117.5)
XYZxyz(6.7409, 8.6429, 1.8853)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5812 #1C1258
analogous
#583F12 #4E5812 #2B5812
triadic
#4E5812 #124E58 #58124E
tetradic
#4E5812 #12583F #1C1258 #58122B
square
#4E5812 #12583F #1C1258 #58122B
split-complementary
#4E5812 #122B58 #3F1258
monochromatic
#171905 #212508 #4E5812 #7B8B1C #A8BE27

Accessibility & contrast

On white

7.70
#4E5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4E5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5812
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5812#FFFFFF#000000##FFFFFF
##4E58121.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5305
Deuteranopia (green-blind)
#5D5318
Tritanopia (blue-blind)
#53534B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e5812;
/* rgb */ color: rgb(78, 88, 18);
/* oklch */ color: oklch(43.7% 0.092 117.5);
Tailwind
colors: {
  custom: {
    50: '#828756',
    500: '#4e5812',
    950: '#000000',
  },
}
SCSS
$custom: #4e5812;
$custom-light: #828756;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5812",
  "rgb": {
    "r": 78,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 68.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43731,
    "c": 0.09152,
    "h": 117.5
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#4E5812
secondary
#423591
accent
#3FE957
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #4E5812

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

Preview Lab → · Contrast checker → · Palette generator →

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