#5F8918#5F8918

#5F8918 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.8% C 0.143 H 128.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F8918
RGBrgb(95, 137, 24)
HSLhsl(82, 70%, 32%)
HSVhsv(82, 82%, 54%)
CMYKcmyk(30.7%, 0%, 82.5%, 46.3%)
CIE-LABlab(52.28, -31.31, 50.84)
CIE-LCHlch(52.28, 59.70, 121.62°)
OKLaboklab(57.8% -0.0898 0.1116)
OKLCHoklch(57.8% 0.143 128.8)
XYZxyz(13.8298, 20.3898, 4.0709)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8918 #421889
analogous
#897B18 #5F8918 #278918
triadic
#5F8918 #185F89 #89185F
tetradic
#5F8918 #18897B #421889 #891827
square
#5F8918 #18897B #421889 #891827
split-complementary
#5F8918 #182789 #7B1889
monochromatic
#172106 #3B550F #5F8918 #83BD21 #A2DD3E

Accessibility & contrast

On white

4.14
#5F8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5F8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8918
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8918#FFFFFF#000000##000000
##5F89181.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8A7C25
Tritanopia (blue-blind)
#628375
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f8918;
/* rgb */ color: rgb(95, 137, 24);
/* oklch */ color: oklch(57.8% 0.143 128.8);
Tailwind
colors: {
  custom: {
    50: '#91ab60',
    500: '#5f8918',
    950: '#000000',
  },
}
SCSS
$custom: #5f8918;
$custom-light: #91ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8918",
  "rgb": {
    "r": 95,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 82.301,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57804,
    "c": 0.14326,
    "h": 128.8
  },
  "luminance": 0.2039
}

Semantic roles & 50–950 ramp

primary
#5F8918
secondary
#6E40BD
accent
#3BED7D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8918

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

Preview Lab → · Contrast checker → · Palette generator →

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