#5D7612#5D7612

#5D7612 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.7% C 0.123 H 123.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5D7612
RGBrgb(93, 118, 18)
HSLhsl(75, 74%, 27%)
HSVhsv(75, 85%, 46%)
CMYKcmyk(21.2%, 0%, 84.7%, 53.7%)
CIE-LABlab(46.08, -23.17, 46.99)
CIE-LCHlch(46.08, 52.40, 116.25°)
OKLaboklab(52.73% -0.0681 0.1025)
OKLCHoklch(52.73% 0.123 123.6)
XYZxyz(11.1020, 15.3276, 2.9458)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7612 #2B1276
analogous
#765D12 #5D7612 #2B7612
triadic
#5D7612 #125D76 #76125D
tetradic
#5D7612 #12765D #2B1276 #76122B
square
#5D7612 #12765D #2B1276 #76122B
split-complementary
#5D7612 #122B76 #5D1276
monochromatic
#151B04 #33410A #5D7612 #87AB1A #AFDE25

Accessibility & contrast

On white

5.17
#5D7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5D7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7612
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7612#FFFFFF#000000##FFFFFF
##5D76121.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#627064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5d7612;
/* rgb */ color: rgb(93, 118, 18);
/* oklch */ color: oklch(52.7% 0.123 123.6);
Tailwind
colors: {
  custom: {
    50: '#8e9d5b',
    500: '#5d7612',
    950: '#000000',
  },
}
SCSS
$custom: #5d7612;
$custom-light: #8e9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7612",
  "rgb": {
    "r": 93,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 75,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52731,
    "c": 0.12303,
    "h": 123.6
  },
  "luminance": 0.15328
}

Semantic roles & 50–950 ramp

primary
#5D7612
secondary
#5537AD
accent
#38F066
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5D7612

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

Preview Lab → · Contrast checker → · Palette generator →

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