#5E7612#5E7612

#5E7612 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.8% C 0.123 H 123.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5E7612
RGBrgb(94, 118, 18)
HSLhsl(74, 74%, 27%)
HSVhsv(74, 85%, 46%)
CMYKcmyk(20.3%, 0%, 84.7%, 53.7%)
CIE-LABlab(46.15, -22.73, 47.08)
CIE-LCHlch(46.15, 52.28, 115.77°)
OKLaboklab(52.81% -0.0669 0.1026)
OKLCHoklch(52.81% 0.123 123.1)
XYZxyz(11.2039, 15.3802, 2.9506)
Luminance0.1538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7612 #2A1276
analogous
#765C12 #5E7612 #2C7612
triadic
#5E7612 #125E76 #76125E
tetradic
#5E7612 #12765C #2A1276 #76122C
square
#5E7612 #12765C #2A1276 #76122C
split-complementary
#5E7612 #122C76 #5C1276
monochromatic
#151B04 #34410A #5E7612 #88AB1A #B1DE25

Accessibility & contrast

On white

5.15
#5E7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5E7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7612
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7612#FFFFFF#000000##FFFFFF
##5E76121.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#637064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5e7612;
/* rgb */ color: rgb(94, 118, 18);
/* oklch */ color: oklch(52.8% 0.123 123.1);
Tailwind
colors: {
  custom: {
    50: '#8f9d5b',
    500: '#5e7612',
    950: '#000000',
  },
}
SCSS
$custom: #5e7612;
$custom-light: #8f9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7612",
  "rgb": {
    "r": 94,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 74.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52807,
    "c": 0.12254,
    "h": 123.1
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#5E7612
secondary
#5337AD
accent
#38F064
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5E7612

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

Preview Lab → · Contrast checker → · Palette generator →

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