#5D6817#5D6817

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

Color values

HEX#5D6817
RGBrgb(93, 104, 23)
HSLhsl(68, 64%, 25%)
HSVhsv(68, 78%, 41%)
CMYKcmyk(10.6%, 0%, 77.9%, 59.2%)
CIE-LABlab(41.67, -15.58, 41.29)
CIE-LCHlch(41.67, 44.13, 110.68°)
OKLaboklab(49.19% -0.0469 0.0913)
OKLCHoklch(49.19% 0.103 117.2)
XYZxyz(9.6194, 12.2898, 2.6759)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D6817 #221768
analogous
#684A17 #5D6817 #356817
triadic
#5D6817 #175D68 #68175D
tetradic
#5D6817 #17684A #221768 #681735
square
#5D6817 #17684A #221768 #681735
split-complementary
#5D6817 #173568 #4A1768
monochromatic
#161906 #30360C #5D6817 #8A9A22 #B7CC2D

Accessibility & contrast

On white

6.07
#5D6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5D6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D6817
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D6817#FFFFFF#000000##FFFFFF
##5D68171.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706206
Deuteranopia (green-blind)
#6E631E
Tritanopia (blue-blind)
#636259
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5d6817;
/* rgb */ color: rgb(93, 104, 23);
/* oklch */ color: oklch(49.2% 0.103 117.2);
Tailwind
colors: {
  custom: {
    50: '#8e935b',
    500: '#5d6817',
    950: '#000000',
  },
}
SCSS
$custom: #5d6817;
$custom-light: #8e935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d6817",
  "rgb": {
    "r": 93,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 68.148,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49185,
    "c": 0.10263,
    "h": 117.2
  },
  "luminance": 0.1229
}

Semantic roles & 50–950 ramp

primary
#5D6817
secondary
#4A3D9E
accent
#41E758
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0D0D04
muted
#7D7E79

Preview Lab

Preview with #5D6817

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

Preview Lab → · Contrast checker → · Palette generator →

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