#5E7F18#5E7F18

#5E7F18 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 55.2% C 0.131 H 126.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5E7F18
RGBrgb(94, 127, 24)
HSLhsl(79, 68%, 30%)
HSVhsv(79, 81%, 50%)
CMYKcmyk(26%, 0%, 81.1%, 50.2%)
CIE-LABlab(49.04, -26.94, 47.86)
CIE-LCHlch(49.04, 54.92, 119.38°)
OKLaboklab(55.16% -0.078 0.1053)
OKLCHoklch(55.16% 0.131 126.5)
XYZxyz(12.3704, 17.6242, 3.6140)
Luminance0.1762 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7F18 #39187F
analogous
#7F6D18 #5E7F18 #2B7F18
triadic
#5E7F18 #185E7F #7F185E
tetradic
#5E7F18 #187F6D #39187F #7F182B
square
#5E7F18 #187F6D #39187F #7F182B
split-complementary
#5E7F18 #182B7F #6D187F
monochromatic
#131A05 #384C0E #5E7F18 #84B222 #A6D938

Accessibility & contrast

On white

4.64
#5E7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#5E7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7F18
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7F18#FFFFFF#000000##FFFFFF
##5E7F181.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#827423
Tritanopia (blue-blind)
#62796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5e7f18;
/* rgb */ color: rgb(94, 127, 24);
/* oklch */ color: oklch(55.2% 0.131 126.5);
Tailwind
colors: {
  custom: {
    50: '#8fa45f',
    500: '#5e7f18',
    950: '#000000',
  },
}
SCSS
$custom: #5e7f18;
$custom-light: #8fa45f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7f18",
  "rgb": {
    "r": 94,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 79.223,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55155,
    "c": 0.13103,
    "h": 126.5
  },
  "luminance": 0.17624
}

Semantic roles & 50–950 ramp

primary
#5E7F18
secondary
#653FB3
accent
#3DEB75
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5E7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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