#5E7012#5E7012

#5E7012 is a mid, moderate yellow-green. Relative luminance 0.140; OKLCH L 51.3% C 0.115 H 120.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5E7012
RGBrgb(94, 112, 18)
HSLhsl(71, 72%, 25%)
HSVhsv(71, 84%, 44%)
CMYKcmyk(16.1%, 0%, 83.9%, 56.1%)
CIE-LABlab(44.25, -19.63, 45.40)
CIE-LCHlch(44.25, 49.46, 113.39°)
OKLaboklab(51.27% -0.0585 0.099)
OKLCHoklch(51.27% 0.115 120.6)
XYZxyz(10.5197, 14.0117, 2.7225)
Luminance0.1401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7012 #241270
analogous
#705312 #5E7012 #2F7012
triadic
#5E7012 #125E70 #70125E
tetradic
#5E7012 #127053 #241270 #70122F
square
#5E7012 #127053 #241270 #70122F
split-complementary
#5E7012 #122F70 #531270
monochromatic
#161A04 #323B0A #5E7012 #8AA51A #B7D923

Accessibility & contrast

On white

5.52
#5E7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5E7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7012
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7012#FFFFFF#000000##FFFFFF
##5E70121.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#75691C
Tritanopia (blue-blind)
#646A5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5e7012;
/* rgb */ color: rgb(94, 112, 18);
/* oklch */ color: oklch(51.3% 0.115 120.6);
Tailwind
colors: {
  custom: {
    50: '#8f995a',
    500: '#5e7012',
    950: '#000000',
  },
}
SCSS
$custom: #5e7012;
$custom-light: #8f995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7012",
  "rgb": {
    "r": 94,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 71.489,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51271,
    "c": 0.11502,
    "h": 120.6
  },
  "luminance": 0.14012
}

Semantic roles & 50–950 ramp

primary
#5E7012
secondary
#4C37A7
accent
#39EF5C
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5E7012

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

Preview Lab → · Contrast checker → · Palette generator →

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