#5C6812#5C6812

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

Color values

HEX#5C6812
RGBrgb(92, 104, 18)
HSLhsl(68, 70%, 24%)
HSVhsv(68, 83%, 41%)
CMYKcmyk(11.5%, 0%, 82.7%, 59.2%)
CIE-LABlab(41.56, -16.29, 42.92)
CIE-LCHlch(41.56, 45.91, 110.79°)
OKLaboklab(49.07% -0.0492 0.0939)
OKLCHoklch(49.07% 0.106 117.7)
XYZxyz(9.4734, 12.2197, 2.4317)
Luminance0.1222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C6812 #1E1268
analogous
#684912 #5C6812 #316812
triadic
#5C6812 #125C68 #68125C
tetradic
#5C6812 #126849 #1E1268 #681231
square
#5C6812 #126849 #1E1268 #681231
split-complementary
#5C6812 #123168 #491268
monochromatic
#171A05 #2E3409 #5C6812 #8A9C1B #B8D024

Accessibility & contrast

On white

6.10
#5C6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5C6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C6812
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C6812#FFFFFF#000000##FFFFFF
##5C68121.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c6812;
/* rgb */ color: rgb(92, 104, 18);
/* oklch */ color: oklch(49.1% 0.106 117.7);
Tailwind
colors: {
  custom: {
    50: '#8d9359',
    500: '#5c6812',
    950: '#000000',
  },
}
SCSS
$custom: #5c6812;
$custom-light: #8d9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5c6812",
  "rgb": {
    "r": 92,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 68.372,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.49067,
    "c": 0.10597,
    "h": 117.7
  },
  "luminance": 0.1222
}

Semantic roles & 50–950 ramp

primary
#5C6812
secondary
#4536A0
accent
#3BED53
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0D0D04
muted
#7D7E79

Preview Lab

Preview with #5C6812

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

Preview Lab → · Contrast checker → · Palette generator →

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