#5F8117#5F8117

#5F8117 is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.7% C 0.134 H 126.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5F8117
RGBrgb(95, 129, 23)
HSLhsl(79, 70%, 30%)
HSVhsv(79, 82%, 51%)
CMYKcmyk(26.4%, 0%, 82.2%, 49.4%)
CIE-LABlab(49.73, -27.55, 48.83)
CIE-LCHlch(49.73, 56.06, 119.43°)
OKLaboklab(55.74% -0.0797 0.1072)
OKLCHoklch(55.74% 0.134 126.7)
XYZxyz(12.7243, 18.1950, 3.6521)
Luminance0.1820 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8117 #391781
analogous
#816E17 #5F8117 #2A8117
triadic
#5F8117 #175F81 #81175F
tetradic
#5F8117 #17816E #391781 #81172A
square
#5F8117 #17816E #391781 #81172A
split-complementary
#5F8117 #172A81 #6E1781
monochromatic
#131A05 #394D0E #5F8117 #85B520 #A7DB37

Accessibility & contrast

On white

4.53
#5F8117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5F8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8117
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8117#FFFFFF#000000##000000
##5F81171.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#847622
Tritanopia (blue-blind)
#637B6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5f8117;
/* rgb */ color: rgb(95, 129, 23);
/* oklch */ color: oklch(55.7% 0.134 126.7);
Tailwind
colors: {
  custom: {
    50: '#90a55f',
    500: '#5f8117',
    950: '#000000',
  },
}
SCSS
$custom: #5f8117;
$custom-light: #90a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8117",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 79.245,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55735,
    "c": 0.13358,
    "h": 126.7
  },
  "luminance": 0.18195
}

Semantic roles & 50–950 ramp

primary
#5F8117
secondary
#653EB5
accent
#3BED74
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8117

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

Preview Lab → · Contrast checker → · Palette generator →

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