#5F7A18#5F7A18

#5F7A18 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.124 H 124.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5F7A18
RGBrgb(95, 122, 24)
HSLhsl(77, 67%, 29%)
HSVhsv(77, 80%, 48%)
CMYKcmyk(22.1%, 0%, 80.3%, 52.2%)
CIE-LABlab(47.52, -24.04, 46.48)
CIE-LCHlch(47.52, 52.33, 117.35°)
OKLaboklab(53.94% -0.0701 0.1024)
OKLCHoklch(53.94% 0.124 124.4)
XYZxyz(11.8438, 16.4178, 3.4090)
Luminance0.1642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7A18 #33187A
analogous
#7A6418 #5F7A18 #2E7A18
triadic
#5F7A18 #185F7A #7A185F
tetradic
#5F7A18 #187A64 #33187A #7A182E
square
#5F7A18 #187A64 #33187A #7A182E
split-complementary
#5F7A18 #182E7A #64187A
monochromatic
#141A05 #37470E #5F7A18 #87AD22 #ABD735

Accessibility & contrast

On white

4.90
#5F7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5F7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7A18
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7A18#FFFFFF#000000##FFFFFF
##5F7A181.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7E7022
Tritanopia (blue-blind)
#647468
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f7a18;
/* rgb */ color: rgb(95, 122, 24);
/* oklch */ color: oklch(53.9% 0.124 124.4);
Tailwind
colors: {
  custom: {
    50: '#90a05e',
    500: '#5f7a18',
    950: '#000000',
  },
}
SCSS
$custom: #5f7a18;
$custom-light: #90a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7a18",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 76.531,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.12409,
    "h": 124.4
  },
  "luminance": 0.16418
}

Semantic roles & 50–950 ramp

primary
#5F7A18
secondary
#5E3FAF
accent
#3EEA6D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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