#5E7D1F#5E7D1F

#5E7D1F is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.7% C 0.124 H 126.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5E7D1F
RGBrgb(94, 125, 31)
HSLhsl(80, 60%, 31%)
HSVhsv(80, 75%, 49%)
CMYKcmyk(24.8%, 0%, 75.2%, 51%)
CIE-LABlab(48.44, -25.57, 44.83)
CIE-LCHlch(48.44, 51.61, 119.70°)
OKLaboklab(54.69% -0.0737 0.1001)
OKLCHoklch(54.69% 0.124 126.3)
XYZxyz(12.1971, 17.1456, 3.9629)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7D1F #3E1F7D
analogous
#7D6D1F #5E7D1F #2F7D1F
triadic
#5E7D1F #1F5E7D #7D1F5E
tetradic
#5E7D1F #1F7D6D #3E1F7D #7D1F2F
square
#5E7D1F #1F7D6D #3E1F7D #7D1F2F
split-complementary
#5E7D1F #1F2F7D #6D1F7D
monochromatic
#141B07 #394C13 #5E7D1F #83AE2B #A3D145

Accessibility & contrast

On white

4.74
#5E7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5E7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7D1F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7D1F#FFFFFF#000000##FFFFFF
##5E7D1F1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#62776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5e7d1f;
/* rgb */ color: rgb(94, 125, 31);
/* oklch */ color: oklch(54.7% 0.124 126.3);
Tailwind
colors: {
  custom: {
    50: '#8fa262',
    500: '#5e7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5e7d1f;
$custom-light: #8fa262;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7d1f",
  "rgb": {
    "r": 94,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 79.787,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54686,
    "c": 0.12431,
    "h": 126.3
  },
  "luminance": 0.17146
}

Semantic roles & 50–950 ramp

primary
#5E7D1F
secondary
#6A48B0
accent
#44E379
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5E7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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