#5C6817#5C6817

#5C6817 is a mid, moderate yellow. Relative luminance 0.122; OKLCH L 49.1% C 0.103 H 117.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5C6817
RGBrgb(92, 104, 23)
HSLhsl(69, 64%, 25%)
HSVhsv(69, 78%, 41%)
CMYKcmyk(11.5%, 0%, 77.9%, 59.2%)
CIE-LABlab(41.59, -16.05, 41.18)
CIE-LCHlch(41.59, 44.20, 111.29°)
OKLaboklab(49.1% -0.0481 0.0911)
OKLCHoklch(49.1% 0.103 117.8)
XYZxyz(9.5188, 12.2379, 2.6711)
Luminance0.1224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C6817 #231768
analogous
#684C17 #5C6817 #336817
triadic
#5C6817 #175C68 #68175C
tetradic
#5C6817 #17684C #231768 #681733
square
#5C6817 #17684C #231768 #681733
split-complementary
#5C6817 #173368 #4C1768
monochromatic
#161906 #30360C #5C6817 #889A22 #B5CC2D

Accessibility & contrast

On white

6.09
#5C6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5C6817
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C6817#FFFFFF#000000##FFFFFF
##5C68171.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c6817;
/* rgb */ color: rgb(92, 104, 23);
/* oklch */ color: oklch(49.1% 0.103 117.8);
Tailwind
colors: {
  custom: {
    50: '#8d935b',
    500: '#5c6817',
    950: '#000000',
  },
}
SCSS
$custom: #5c6817;
$custom-light: #8d935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c6817",
  "rgb": {
    "r": 92,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 68.889,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49099,
    "c": 0.10303,
    "h": 117.8
  },
  "luminance": 0.12238
}

Semantic roles & 50–950 ramp

primary
#5C6817
secondary
#4B3D9E
accent
#41E75A
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5C6817

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

Preview Lab → · Contrast checker → · Palette generator →

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