#5E7B18#5E7B18

#5E7B18 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 54.1% C 0.126 H 125.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5E7B18
RGBrgb(94, 123, 24)
HSLhsl(78, 67%, 29%)
HSVhsv(78, 80%, 48%)
CMYKcmyk(23.6%, 0%, 80.5%, 51.8%)
CIE-LABlab(47.77, -24.97, 46.68)
CIE-LCHlch(47.77, 52.94, 118.15°)
OKLaboklab(54.13% -0.0726 0.1028)
OKLCHoklch(54.13% 0.126 125.2)
XYZxyz(11.8640, 16.6114, 3.4453)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7B18 #35187B
analogous
#7B6718 #5E7B18 #2D7B18
triadic
#5E7B18 #185E7B #7B185E
tetradic
#5E7B18 #187B67 #35187B #7B182D
square
#5E7B18 #187B67 #35187B #7B182D
split-complementary
#5E7B18 #182D7B #67187B
monochromatic
#141A05 #37480E #5E7B18 #85AE22 #A8D836

Accessibility & contrast

On white

4.86
#5E7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5E7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7B18
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7B18#FFFFFF#000000##FFFFFF
##5E7B181.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7E7122
Tritanopia (blue-blind)
#637569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5e7b18;
/* rgb */ color: rgb(94, 123, 24);
/* oklch */ color: oklch(54.1% 0.126 125.2);
Tailwind
colors: {
  custom: {
    50: '#8fa15e',
    500: '#5e7b18',
    950: '#000000',
  },
}
SCSS
$custom: #5e7b18;
$custom-light: #8fa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7b18",
  "rgb": {
    "r": 94,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 77.576,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54125,
    "c": 0.12589,
    "h": 125.2
  },
  "luminance": 0.16612
}

Semantic roles & 50–950 ramp

primary
#5E7B18
secondary
#603FB0
accent
#3EEA70
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0F05
muted
#7E7E79

Preview Lab

Preview with #5E7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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