#5F7418#5F7418

#5F7418 is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.4% C 0.116 H 122.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F7418
RGBrgb(95, 116, 24)
HSLhsl(74, 66%, 27%)
HSVhsv(74, 79%, 45%)
CMYKcmyk(18.1%, 0%, 79.3%, 54.5%)
CIE-LABlab(45.62, -20.99, 44.71)
CIE-LCHlch(45.62, 49.39, 115.15°)
OKLaboklab(52.41% -0.0618 0.0986)
OKLCHoklch(52.41% 0.116 122.1)
XYZxyz(11.1297, 14.9896, 3.1709)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7418 #2D1874
analogous
#745B18 #5F7418 #317418
triadic
#5F7418 #185F74 #74185F
tetradic
#5F7418 #18745B #2D1874 #741831
square
#5F7418 #18745B #2D1874 #741831
split-complementary
#5F7418 #183174 #5B1874
monochromatic
#151905 #35410E #5F7418 #89A722 #AFD532

Accessibility & contrast

On white

5.25
#5F7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5F7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7418
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7418#FFFFFF#000000##FFFFFF
##5F74181.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C03
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#646E63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f7418;
/* rgb */ color: rgb(95, 116, 24);
/* oklch */ color: oklch(52.4% 0.116 122.1);
Tailwind
colors: {
  custom: {
    50: '#8f9c5d',
    500: '#5f7418',
    950: '#000000',
  },
}
SCSS
$custom: #5f7418;
$custom-light: #8f9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7418",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 73.696,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52406,
    "c": 0.11638,
    "h": 122.1
  },
  "luminance": 0.1499
}

Semantic roles & 50–950 ramp

primary
#5F7418
secondary
#573FA9
accent
#3FE966
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7418

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

Preview Lab → · Contrast checker → · Palette generator →

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