#5E7F1F#5E7F1F

#5E7F1F is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.127 H 127.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5E7F1F
RGBrgb(94, 127, 31)
HSLhsl(81, 61%, 31%)
HSVhsv(81, 76%, 50%)
CMYKcmyk(26%, 0%, 75.6%, 50.2%)
CIE-LABlab(49.08, -26.56, 45.45)
CIE-LCHlch(49.08, 52.64, 120.30°)
OKLaboklab(55.2% -0.0763 0.1015)
OKLCHoklch(55.2% 0.127 127)
XYZxyz(12.4528, 17.6571, 4.0481)
Luminance0.1766 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7F1F #401F7F
analogous
#7F701F #5E7F1F #2E7F1F
triadic
#5E7F1F #1F5E7F #7F1F5E
tetradic
#5E7F1F #1F7F70 #401F7F #7F1F2E
square
#5E7F1F #1F7F70 #401F7F #7F1F2E
split-complementary
#5E7F1F #1F2E7F #701F7F
monochromatic
#151D07 #3A4E13 #5E7F1F #82B02B #A2D246

Accessibility & contrast

On white

4.63
#5E7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5E7F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7F1F
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7F1F#FFFFFF#000000##FFFFFF
##5E7F1F1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760C
Deuteranopia (green-blind)
#817428
Tritanopia (blue-blind)
#62796C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5e7f1f;
/* rgb */ color: rgb(94, 127, 31);
/* oklch */ color: oklch(55.2% 0.127 127.0);
Tailwind
colors: {
  custom: {
    50: '#8fa462',
    500: '#5e7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #5e7f1f;
$custom-light: #8fa462;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7f1f",
  "rgb": {
    "r": 94,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 80.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55201,
    "c": 0.12697,
    "h": 127
  },
  "luminance": 0.17657
}

Semantic roles & 50–950 ramp

primary
#5E7F1F
secondary
#6C48B2
accent
#44E47B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5E7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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