#5D7212#5D7212

#5D7212 is a mid, moderate yellow-green. Relative luminance 0.144; OKLCH L 51.7% C 0.118 H 122.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5D7212
RGBrgb(93, 114, 18)
HSLhsl(73, 73%, 26%)
HSVhsv(73, 84%, 45%)
CMYKcmyk(18.4%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.81, -21.13, 45.87)
CIE-LCHlch(44.81, 50.50, 114.73°)
OKLaboklab(51.7% -0.0625 0.1001)
OKLCHoklch(51.7% 0.118 122)
XYZxyz(10.6409, 14.4054, 2.7921)
Luminance0.1441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7212 #271272
analogous
#725712 #5D7212 #2D7212
triadic
#5D7212 #125D72 #72125D
tetradic
#5D7212 #127257 #271272 #72122D
square
#5D7212 #127257 #271272 #72122D
split-complementary
#5D7212 #122D72 #571272
monochromatic
#161A04 #323D0A #5D7212 #88A71A #B3DC23

Accessibility & contrast

On white

5.41
#5D7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5D7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7212
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7212#FFFFFF#000000##FFFFFF
##5D72121.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#626C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5d7212;
/* rgb */ color: rgb(93, 114, 18);
/* oklch */ color: oklch(51.7% 0.118 122.0);
Tailwind
colors: {
  custom: {
    50: '#8e9a5a',
    500: '#5d7212',
    950: '#000000',
  },
}
SCSS
$custom: #5d7212;
$custom-light: #8e9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7212",
  "rgb": {
    "r": 93,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 73.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51704,
    "c": 0.11799,
    "h": 122
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#5D7212
secondary
#5037A9
accent
#38EF60
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5D7212

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

Preview Lab → · Contrast checker → · Palette generator →

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