#5E7212#5E7212

#5E7212 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.118 H 121.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5E7212
RGBrgb(94, 114, 18)
HSLhsl(73, 73%, 26%)
HSVhsv(73, 84%, 45%)
CMYKcmyk(17.5%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.88, -20.68, 45.96)
CIE-LCHlch(44.88, 50.40, 114.22°)
OKLaboklab(51.78% -0.0613 0.1002)
OKLCHoklch(51.78% 0.118 121.5)
XYZxyz(10.7428, 14.4580, 2.7969)
Luminance0.1446 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7212 #261272
analogous
#725612 #5E7212 #2E7212
triadic
#5E7212 #125E72 #72125E
tetradic
#5E7212 #127256 #261272 #72122E
square
#5E7212 #127256 #261272 #72122E
split-complementary
#5E7212 #122E72 #561272
monochromatic
#161A04 #323D0A #5E7212 #8AA71A #B5DC23

Accessibility & contrast

On white

5.40
#5E7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5E7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7212
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7212#FFFFFF#000000##FFFFFF
##5E72121.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#646C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5e7212;
/* rgb */ color: rgb(94, 114, 18);
/* oklch */ color: oklch(51.8% 0.118 121.5);
Tailwind
colors: {
  custom: {
    50: '#8f9a5a',
    500: '#5e7212',
    950: '#000000',
  },
}
SCSS
$custom: #5e7212;
$custom-light: #8f9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7212",
  "rgb": {
    "r": 94,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 72.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.11752,
    "h": 121.5
  },
  "luminance": 0.14458
}

Semantic roles & 50–950 ramp

primary
#5E7212
secondary
#4F37A9
accent
#38EF5F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5E7212

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

Preview Lab → · Contrast checker → · Palette generator →

#5E7212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva