#5E7D17#5E7D17

#5E7D17 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.6% C 0.129 H 125.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5E7D17
RGBrgb(94, 125, 23)
HSLhsl(78, 69%, 29%)
HSVhsv(78, 82%, 49%)
CMYKcmyk(24.8%, 0%, 81.6%, 51%)
CIE-LABlab(48.40, -26.01, 47.59)
CIE-LCHlch(48.40, 54.23, 118.66°)
OKLaboklab(54.63% -0.0755 0.1046)
OKLCHoklch(54.63% 0.129 125.8)
XYZxyz(12.1045, 17.1086, 3.4750)
Luminance0.1711 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7D17 #36177D
analogous
#7D6917 #5E7D17 #2B7D17
triadic
#5E7D17 #175E7D #7D175E
tetradic
#5E7D17 #177D69 #36177D #7D172B
square
#5E7D17 #177D69 #36177D #7D172B
split-complementary
#5E7D17 #172B7D #69177D
monochromatic
#131A05 #37490D #5E7D17 #85B121 #A8DA35

Accessibility & contrast

On white

4.75
#5E7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5E7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7D17
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7D17#FFFFFF#000000##FFFFFF
##5E7D171.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#807222
Tritanopia (blue-blind)
#62776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5e7d17;
/* rgb */ color: rgb(94, 125, 23);
/* oklch */ color: oklch(54.6% 0.129 125.8);
Tailwind
colors: {
  custom: {
    50: '#8fa25e',
    500: '#5e7d17',
    950: '#000000',
  },
}
SCSS
$custom: #5e7d17;
$custom-light: #8fa25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7d17",
  "rgb": {
    "r": 94,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 78.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54634,
    "c": 0.12898,
    "h": 125.8
  },
  "luminance": 0.17109
}

Semantic roles & 50–950 ramp

primary
#5E7D17
secondary
#613EB2
accent
#3CEC71
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5E7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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