#5D7512#5D7512

#5D7512 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.5% C 0.122 H 123.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5D7512
RGBrgb(93, 117, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 85%, 46%)
CMYKcmyk(20.5%, 0%, 84.6%, 54.1%)
CIE-LABlab(45.76, -22.66, 46.71)
CIE-LCHlch(45.76, 51.92, 115.88°)
OKLaboklab(52.47% -0.0667 0.1019)
OKLCHoklch(52.47% 0.122 123.2)
XYZxyz(10.9848, 15.0933, 2.9067)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7512 #2A1275
analogous
#755C12 #5D7512 #2C7512
triadic
#5D7512 #125D75 #75125D
tetradic
#5D7512 #12755C #2A1275 #75122C
square
#5D7512 #12755C #2A1275 #75122C
split-complementary
#5D7512 #122C75 #5C1275
monochromatic
#151B04 #33400A #5D7512 #87AA1A #B0DD24

Accessibility & contrast

On white

5.23
#5D7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5D7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7512
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7512#FFFFFF#000000##FFFFFF
##5D75121.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#626F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5d7512;
/* rgb */ color: rgb(93, 117, 18);
/* oklch */ color: oklch(52.5% 0.122 123.2);
Tailwind
colors: {
  custom: {
    50: '#8e9c5b',
    500: '#5d7512',
    950: '#000000',
  },
}
SCSS
$custom: #5d7512;
$custom-light: #8e9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7512",
  "rgb": {
    "r": 93,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 74.545,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.52474,
    "c": 0.12177,
    "h": 123.2
  },
  "luminance": 0.15093
}

Semantic roles & 50–950 ramp

primary
#5D7512
secondary
#5337AC
accent
#38F064
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5D7512

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

Preview Lab → · Contrast checker → · Palette generator →

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