#5F7818#5F7818

#5F7818 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.122 H 123.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F7818
RGBrgb(95, 120, 24)
HSLhsl(76, 67%, 28%)
HSVhsv(76, 80%, 47%)
CMYKcmyk(20.8%, 0%, 80%, 52.9%)
CIE-LABlab(46.88, -23.04, 45.89)
CIE-LCHlch(46.88, 51.35, 116.65°)
OKLaboklab(53.43% -0.0674 0.1011)
OKLCHoklch(53.43% 0.122 123.7)
XYZxyz(11.6008, 15.9317, 3.3279)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7818 #311878
analogous
#786118 #5F7818 #2F7818
triadic
#5F7818 #185F78 #78185F
tetradic
#5F7818 #187861 #311878 #78182F
square
#5F7818 #187861 #311878 #78182F
split-complementary
#5F7818 #182F78 #611878
monochromatic
#141A05 #37450E #5F7818 #87AB22 #ACD634

Accessibility & contrast

On white

5.02
#5F7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5F7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7818
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7818#FFFFFF#000000##FFFFFF
##5F78181.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#647266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f7818;
/* rgb */ color: rgb(95, 120, 24);
/* oklch */ color: oklch(53.4% 0.122 123.7);
Tailwind
colors: {
  custom: {
    50: '#909f5e',
    500: '#5f7818',
    950: '#000000',
  },
}
SCSS
$custom: #5f7818;
$custom-light: #909f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7818",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 75.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53429,
    "c": 0.12152,
    "h": 123.7
  },
  "luminance": 0.15932
}

Semantic roles & 50–950 ramp

primary
#5F7818
secondary
#5C3FAD
accent
#3EEA6B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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