#5F9823#5F9823

#5F9823 is a mid, vivid yellow-green. Relative luminance 0.250; OKLCH L 61.7% C 0.157 H 132.5°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F9823
RGBrgb(95, 152, 35)
HSLhsl(89, 63%, 37%)
HSVhsv(89, 77%, 60%)
CMYKcmyk(37.5%, 0%, 77%, 40.4%)
CIE-LABlab(57.09, -37.51, 51.80)
CIE-LCHlch(57.09, 63.96, 125.91°)
OKLaboklab(61.75% -0.1058 0.1154)
OKLCHoklch(61.75% 0.157 132.5)
XYZxyz(16.2507, 25.0100, 5.5610)
Luminance0.2501 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9823 #5C2398
analogous
#989723 #5F9823 #249823
triadic
#5F9823 #235F98 #98235F
tetradic
#5F9823 #239897 #5C2398 #982324
square
#5F9823 #239897 #5C2398 #982324
split-complementary
#5F9823 #232498 #972398
monochromatic
#21350C #406618 #5F9823 #7ECA2E #9CD95C

Accessibility & contrast

On white

3.50
#5F9823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#5F9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9823
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9823#FFFFFF#000000##000000
##5F98231.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C07
Deuteranopia (green-blind)
#97872F
Tritanopia (blue-blind)
#609282
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f9823;
/* rgb */ color: rgb(95, 152, 35);
/* oklch */ color: oklch(61.7% 0.157 132.5);
Tailwind
colors: {
  custom: {
    50: '#91b667',
    500: '#5f9823',
    950: '#000000',
  },
}
SCSS
$custom: #5f9823;
$custom-light: #91b667;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9823",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 89.231,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61746,
    "c": 0.15659,
    "h": 132.5
  },
  "luminance": 0.25011
}

Semantic roles & 50–950 ramp

primary
#5F9823
secondary
#8A59BE
accent
#42E692
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9823

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

Preview Lab → · Contrast checker → · Palette generator →

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