#5F7D19#5F7D19

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

Color values

HEX#5F7D19
RGBrgb(95, 125, 25)
HSLhsl(78, 67%, 29%)
HSVhsv(78, 80%, 49%)
CMYKcmyk(24%, 0%, 80%, 51%)
CIE-LABlab(48.47, -25.49, 47.03)
CIE-LCHlch(48.47, 53.50, 118.45°)
OKLaboklab(54.72% -0.074 0.1037)
OKLCHoklch(54.72% 0.127 125.5)
XYZxyz(12.2285, 17.1701, 3.5894)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D19 #37197D
analogous
#7D6919 #5F7D19 #2D7D19
triadic
#5F7D19 #195F7D #7D195F
tetradic
#5F7D19 #197D69 #37197D #7D192D
square
#5F7D19 #197D69 #37197D #7D192D
split-complementary
#5F7D19 #192D7D #69197D
monochromatic
#131A05 #384A0F #5F7D19 #86B023 #A8D739

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D19#FFFFFF#000000##FFFFFF
##5F7D191.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)
#807323
Tritanopia (blue-blind)
#64776A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d19;
/* rgb */ color: rgb(95, 125, 25);
/* oklch */ color: oklch(54.7% 0.127 125.5);
Tailwind
colors: {
  custom: {
    50: '#90a25f',
    500: '#5f7d19',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d19;
$custom-light: #90a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d19",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 78,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54717,
    "c": 0.12741,
    "h": 125.5
  },
  "luminance": 0.1717
}

Semantic roles & 50–950 ramp

primary
#5F7D19
secondary
#6240B1
accent
#3EEA72
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D19

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

Preview Lab → · Contrast checker → · Palette generator →

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