#5F7511#5F7511

#5F7511 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.121 H 122.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F7511
RGBrgb(95, 117, 17)
HSLhsl(73, 75%, 26%)
HSVhsv(73, 85%, 46%)
CMYKcmyk(18.8%, 0%, 85.5%, 54.1%)
CIE-LABlab(45.90, -21.82, 47.18)
CIE-LCHlch(45.90, 51.98, 114.82°)
OKLaboklab(52.62% -0.0646 0.1026)
OKLCHoklch(52.62% 0.121 122.2)
XYZxyz(11.1820, 15.1959, 2.8742)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7511 #271175
analogous
#755911 #5F7511 #2D7511
triadic
#5F7511 #115F75 #75115F
tetradic
#5F7511 #117559 #271175 #75112D
square
#5F7511 #117559 #271175 #75112D
split-complementary
#5F7511 #112D75 #591175
monochromatic
#161B04 #344009 #5F7511 #8AAA19 #B5DF22

Accessibility & contrast

On white

5.20
#5F7511 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5F7511 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7511
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7511#FFFFFF#000000##FFFFFF
##5F75111.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#7A6D1C
Tritanopia (blue-blind)
#656E63
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7511;
/* rgb */ color: rgb(95, 117, 17);
/* oklch */ color: oklch(52.6% 0.121 122.2);
Tailwind
colors: {
  custom: {
    50: '#909c5a',
    500: '#5f7511',
    950: '#000000',
  },
}
SCSS
$custom: #5f7511;
$custom-light: #909c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7511",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 17
  },
  "hsl": {
    "h": 73.2,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.52623,
    "c": 0.12125,
    "h": 122.2
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#5F7511
secondary
#5036AC
accent
#37F160
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7511

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

Preview Lab → · Contrast checker → · Palette generator →

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