#5F7015#5F7015

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

Color values

HEX#5F7015
RGBrgb(95, 112, 21)
HSLhsl(71, 68%, 26%)
HSVhsv(71, 81%, 44%)
CMYKcmyk(15.2%, 0%, 81.2%, 56.1%)
CIE-LABlab(44.34, -19.05, 44.55)
CIE-LCHlch(44.34, 48.45, 113.15°)
OKLaboklab(51.37% -0.0567 0.0978)
OKLCHoklch(51.37% 0.113 120.1)
XYZxyz(10.6491, 14.0754, 2.8651)
Luminance0.1407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7015 #261570
analogous
#705315 #5F7015 #317015
triadic
#5F7015 #155F70 #70155F
tetradic
#5F7015 #157053 #261570 #701531
square
#5F7015 #157053 #261570 #701531
split-complementary
#5F7015 #153170 #531570
monochromatic
#161A05 #333C0B #5F7015 #8BA41F #B6D729

Accessibility & contrast

On white

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

On black

3.81
#5F7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F7015#FFFFFF#000000##FFFFFF
##5F70151.005.503.815.50
#FFFFFF5.501.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#76691E
Tritanopia (blue-blind)
#656A5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f7015;
/* rgb */ color: rgb(95, 112, 21);
/* oklch */ color: oklch(51.4% 0.113 120.1);
Tailwind
colors: {
  custom: {
    50: '#8f995b',
    500: '#5f7015',
    950: '#000000',
  },
}
SCSS
$custom: #5f7015;
$custom-light: #8f995b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7015",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 71.209,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51369,
    "c": 0.11301,
    "h": 120.1
  },
  "luminance": 0.14075
}

Semantic roles & 50–950 ramp

primary
#5F7015
secondary
#4F3BA6
accent
#3DEB5D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F7015

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

Preview Lab → · Contrast checker → · Palette generator →

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