#5F7E18#5F7E18

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

Color values

HEX#5F7E18
RGBrgb(95, 126, 24)
HSLhsl(78, 68%, 29%)
HSVhsv(78, 81%, 49%)
CMYKcmyk(24.6%, 0%, 81%, 50.6%)
CIE-LABlab(48.79, -26.03, 47.65)
CIE-LCHlch(48.79, 54.30, 118.65°)
OKLaboklab(54.97% -0.0756 0.1049)
OKLCHoklch(54.97% 0.129 125.8)
XYZxyz(12.3451, 17.4204, 3.5760)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E18 #37187E
analogous
#7E6A18 #5F7E18 #2C7E18
triadic
#5F7E18 #185F7E #7E185F
tetradic
#5F7E18 #187E6A #37187E #7E182C
square
#5F7E18 #187E6A #37187E #7E182C
split-complementary
#5F7E18 #182C7E #6A187E
monochromatic
#131A05 #384B0E #5F7E18 #86B122 #A8D937

Accessibility & contrast

On white

4.68
#5F7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5F7E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7E18
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7E18#FFFFFF#000000##FFFFFF
##5F7E181.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#817323
Tritanopia (blue-blind)
#63786B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e18;
/* rgb */ color: rgb(95, 126, 24);
/* oklch */ color: oklch(55.0% 0.129 125.8);
Tailwind
colors: {
  custom: {
    50: '#90a35f',
    500: '#5f7e18',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e18;
$custom-light: #90a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e18",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 78.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54968,
    "c": 0.12923,
    "h": 125.8
  },
  "luminance": 0.17421
}

Semantic roles & 50–950 ramp

primary
#5F7E18
secondary
#623FB2
accent
#3DEB72
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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