#5F7018#5F7018

#5F7018 is a mid, moderate yellow-green. Relative luminance 0.141; OKLCH L 51.4% C 0.111 H 120.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5F7018
RGBrgb(95, 112, 24)
HSLhsl(72, 65%, 27%)
HSVhsv(72, 79%, 44%)
CMYKcmyk(15.2%, 0%, 78.6%, 56.1%)
CIE-LABlab(44.36, -18.90, 43.52)
CIE-LCHlch(44.36, 47.45, 113.47°)
OKLaboklab(51.39% -0.056 0.0961)
OKLCHoklch(51.39% 0.111 120.2)
XYZxyz(10.6786, 14.0872, 3.0205)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7018 #291870
analogous
#705518 #5F7018 #337018
triadic
#5F7018 #185F70 #70185F
tetradic
#5F7018 #187055 #291870 #701833
square
#5F7018 #187055 #291870 #701833
split-complementary
#5F7018 #183370 #551870
monochromatic
#151905 #343E0D #5F7018 #8AA223 #B3D330

Accessibility & contrast

On white

5.50
#5F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5F7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7018
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7018#FFFFFF#000000##FFFFFF
##5F70181.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776905
Deuteranopia (green-blind)
#756920
Tritanopia (blue-blind)
#656A5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f7018;
/* rgb */ color: rgb(95, 112, 24);
/* oklch */ color: oklch(51.4% 0.111 120.2);
Tailwind
colors: {
  custom: {
    50: '#8f995d',
    500: '#5f7018',
    950: '#000000',
  },
}
SCSS
$custom: #5f7018;
$custom-light: #8f995d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7018",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 71.591,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51388,
    "c": 0.11128,
    "h": 120.2
  },
  "luminance": 0.14087
}

Semantic roles & 50–950 ramp

primary
#5F7018
secondary
#523EA5
accent
#40E860
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F7018

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

Preview Lab → · Contrast checker → · Palette generator →

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