#5D6812#5D6812

#5D6812 is a mid, moderate yellow. Relative luminance 0.123; OKLCH L 49.2% C 0.106 H 117.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5D6812
RGBrgb(93, 104, 18)
HSLhsl(68, 70%, 24%)
HSVhsv(68, 83%, 41%)
CMYKcmyk(10.6%, 0%, 82.7%, 59.2%)
CIE-LABlab(41.64, -15.83, 43.03)
CIE-LCHlch(41.64, 45.85, 110.19°)
OKLaboklab(49.15% -0.048 0.094)
OKLCHoklch(49.15% 0.106 117)
XYZxyz(9.5739, 12.2716, 2.4364)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D6812 #1D1268
analogous
#684812 #5D6812 #326812
triadic
#5D6812 #125D68 #68125D
tetradic
#5D6812 #126848 #1D1268 #681232
square
#5D6812 #126848 #1D1268 #681232
split-complementary
#5D6812 #123268 #481268
monochromatic
#171A05 #2E3409 #5D6812 #8C9C1B #BAD024

Accessibility & contrast

On white

6.08
#5D6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5D6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D6812
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D6812#FFFFFF#000000##FFFFFF
##5D68121.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6F631A
Tritanopia (blue-blind)
#636258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5d6812;
/* rgb */ color: rgb(93, 104, 18);
/* oklch */ color: oklch(49.2% 0.106 117.0);
Tailwind
colors: {
  custom: {
    50: '#8e9359',
    500: '#5d6812',
    950: '#000000',
  },
}
SCSS
$custom: #5d6812;
$custom-light: #8e9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5d6812",
  "rgb": {
    "r": 93,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 67.674,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.49153,
    "c": 0.10557,
    "h": 117
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#5D6812
secondary
#4436A0
accent
#3BED51
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0D0D04
muted
#7D7E79

Preview Lab

Preview with #5D6812

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

Preview Lab → · Contrast checker → · Palette generator →

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