#566212#566212

#566212 is a mid, moderate yellow. Relative luminance 0.108; OKLCH L 47.0% C 0.101 H 118.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#566212
RGBrgb(86, 98, 18)
HSLhsl(69, 69%, 23%)
HSVhsv(69, 82%, 38%)
CMYKcmyk(12.2%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.17, -15.84, 40.56)
CIE-LCHlch(39.17, 43.54, 111.33°)
OKLaboklab(47.02% -0.0476 0.0891)
OKLCHoklch(47.02% 0.101 118.1)
XYZxyz(8.3148, 10.7576, 2.2105)
Luminance0.1076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#566212 #1E1262
analogous
#624612 #566212 #2E6212
triadic
#566212 #125662 #621256
tetradic
#566212 #126246 #1E1262 #62122E
square
#566212 #126246 #1E1262 #62122E
split-complementary
#566212 #122E62 #461262
monochromatic
#171A05 #292E09 #566212 #83961B #B1C925

Accessibility & contrast

On white

6.66
#566212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#566212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #566212
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##566212#FFFFFF#000000##FFFFFF
##5662121.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#685D19
Tritanopia (blue-blind)
#5C5C53
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #566212;
/* rgb */ color: rgb(86, 98, 18);
/* oklch */ color: oklch(47.0% 0.101 118.1);
Tailwind
colors: {
  custom: {
    50: '#888e58',
    500: '#566212',
    950: '#000000',
  },
}
SCSS
$custom: #566212;
$custom-light: #888e58;
$custom-dark: #000000;
JSON
{
  "hex": "#566212",
  "rgb": {
    "r": 86,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 69,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.10098,
    "h": 118.1
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

primary
#566212
secondary
#45369A
accent
#3CEC56
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #566212

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

Preview Lab → · Contrast checker → · Palette generator →

#566212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva