#5F7515#5F7515

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

Color values

HEX#5F7515
RGBrgb(95, 117, 21)
HSLhsl(74, 70%, 27%)
HSVhsv(74, 82%, 46%)
CMYKcmyk(18.8%, 0%, 82.1%, 54.1%)
CIE-LABlab(45.92, -21.65, 45.99)
CIE-LCHlch(45.92, 50.83, 115.21°)
OKLaboklab(52.64% -0.0638 0.1008)
OKLCHoklch(52.64% 0.119 122.3)
XYZxyz(11.2161, 15.2096, 3.0542)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7515 #2B1575
analogous
#755B15 #5F7515 #2F7515
triadic
#5F7515 #155F75 #75155F
tetradic
#5F7515 #15755B #2B1575 #75152F
square
#5F7515 #15755B #2B1575 #75152F
split-complementary
#5F7515 #152F75 #5B1575
monochromatic
#151A05 #35410C #5F7515 #89A91E #B1D92B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7515#FFFFFF#000000##FFFFFF
##5F75151.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)
#7C6D00
Deuteranopia (green-blind)
#7A6D1F
Tritanopia (blue-blind)
#646F63
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7515;
/* rgb */ color: rgb(95, 117, 21);
/* oklch */ color: oklch(52.6% 0.119 122.3);
Tailwind
colors: {
  custom: {
    50: '#909c5c',
    500: '#5f7515',
    950: '#000000',
  },
}
SCSS
$custom: #5f7515;
$custom-light: #909c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7515",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 73.75,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.52643,
    "c": 0.11932,
    "h": 122.3
  },
  "luminance": 0.1521
}

Semantic roles & 50–950 ramp

primary
#5F7515
secondary
#553BAB
accent
#3BEC64
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7515

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

Preview Lab → · Contrast checker → · Palette generator →

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