#5E7218#5E7218

#5E7218 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.114 H 121.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5E7218
RGBrgb(94, 114, 24)
HSLhsl(73, 65%, 27%)
HSVhsv(73, 79%, 45%)
CMYKcmyk(17.5%, 0%, 78.9%, 55.3%)
CIE-LABlab(44.91, -20.40, 44.02)
CIE-LCHlch(44.91, 48.51, 114.86°)
OKLaboklab(51.82% -0.0601 0.0972)
OKLCHoklch(51.82% 0.114 121.7)
XYZxyz(10.7984, 14.4802, 3.0901)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7218 #2C1872
analogous
#725918 #5E7218 #317218
triadic
#5E7218 #185E72 #72185E
tetradic
#5E7218 #187259 #2C1872 #721831
square
#5E7218 #187259 #2C1872 #721831
split-complementary
#5E7218 #183172 #591872
monochromatic
#151905 #343F0D #5E7218 #88A523 #AFD431

Accessibility & contrast

On white

5.39
#5E7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5E7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7218
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7218#FFFFFF#000000##FFFFFF
##5E72181.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B04
Deuteranopia (green-blind)
#776A20
Tritanopia (blue-blind)
#636C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5e7218;
/* rgb */ color: rgb(94, 114, 24);
/* oklch */ color: oklch(51.8% 0.114 121.7);
Tailwind
colors: {
  custom: {
    50: '#8f9a5d',
    500: '#5e7218',
    950: '#000000',
  },
}
SCSS
$custom: #5e7218;
$custom-light: #8f9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7218",
  "rgb": {
    "r": 94,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 73.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.51817,
    "c": 0.11429,
    "h": 121.7
  },
  "luminance": 0.1448
}

Semantic roles & 50–950 ramp

primary
#5E7218
secondary
#563EA7
accent
#40E865
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5E7218

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

Preview Lab → · Contrast checker → · Palette generator →

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