#5D7012#5D7012

#5D7012 is a mid, moderate yellow-green. Relative luminance 0.140; OKLCH L 51.2% C 0.115 H 121.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5D7012
RGBrgb(93, 112, 18)
HSLhsl(72, 72%, 25%)
HSVhsv(72, 84%, 44%)
CMYKcmyk(17%, 0%, 83.9%, 56.1%)
CIE-LABlab(44.17, -20.09, 45.30)
CIE-LCHlch(44.17, 49.55, 113.91°)
OKLaboklab(51.19% -0.0597 0.0989)
OKLCHoklch(51.19% 0.115 121.1)
XYZxyz(10.4177, 13.9592, 2.7177)
Luminance0.1396 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7012 #251270
analogous
#705412 #5D7012 #2E7012
triadic
#5D7012 #125D70 #70125D
tetradic
#5D7012 #127054 #251270 #70122E
square
#5D7012 #127054 #251270 #70122E
split-complementary
#5D7012 #122E70 #541270
monochromatic
#161A04 #313B0A #5D7012 #89A51A #B5D923

Accessibility & contrast

On white

5.54
#5D7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5D7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7012
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7012#FFFFFF#000000##FFFFFF
##5D70121.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#75691C
Tritanopia (blue-blind)
#636A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5d7012;
/* rgb */ color: rgb(93, 112, 18);
/* oklch */ color: oklch(51.2% 0.115 121.1);
Tailwind
colors: {
  custom: {
    50: '#8e995a',
    500: '#5d7012',
    950: '#000000',
  },
}
SCSS
$custom: #5d7012;
$custom-light: #8e995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7012",
  "rgb": {
    "r": 93,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 72.128,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51191,
    "c": 0.11548,
    "h": 121.1
  },
  "luminance": 0.13959
}

Semantic roles & 50–950 ramp

primary
#5D7012
secondary
#4D37A7
accent
#39EF5E
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5D7012

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

Preview Lab → · Contrast checker → · Palette generator →

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