#5F7D18#5F7D18

#5F7D18 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.128 H 125.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F7D18
RGBrgb(95, 125, 24)
HSLhsl(78, 68%, 29%)
HSVhsv(78, 81%, 49%)
CMYKcmyk(24%, 0%, 80.8%, 51%)
CIE-LABlab(48.47, -25.54, 47.36)
CIE-LCHlch(48.47, 53.81, 118.34°)
OKLaboklab(54.71% -0.0742 0.1042)
OKLCHoklch(54.71% 0.128 125.5)
XYZxyz(12.2179, 17.1659, 3.5336)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D18 #36187D
analogous
#7D6918 #5F7D18 #2D7D18
triadic
#5F7D18 #185F7D #7D185F
tetradic
#5F7D18 #187D69 #36187D #7D182D
square
#5F7D18 #187D69 #36187D #7D182D
split-complementary
#5F7D18 #182D7D #69187D
monochromatic
#141A05 #384A0E #5F7D18 #86B022 #A9D937

Accessibility & contrast

On white

4.74
#5F7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5F7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D18
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D18#FFFFFF#000000##FFFFFF
##5F7D181.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#64776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d18;
/* rgb */ color: rgb(95, 125, 24);
/* oklch */ color: oklch(54.7% 0.128 125.5);
Tailwind
colors: {
  custom: {
    50: '#90a25e',
    500: '#5f7d18',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d18;
$custom-light: #90a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d18",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 77.822,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54711,
    "c": 0.12795,
    "h": 125.5
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#5F7D18
secondary
#613FB2
accent
#3DEB71
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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