#556212#556212

#556212 is a mid, moderate yellow. Relative luminance 0.107; OKLCH L 46.9% C 0.101 H 118.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#556212
RGBrgb(85, 98, 18)
HSLhsl(70, 69%, 23%)
HSVhsv(70, 82%, 38%)
CMYKcmyk(13.3%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.09, -16.31, 40.45)
CIE-LCHlch(39.09, 43.62, 111.95°)
OKLaboklab(46.93% -0.0488 0.0889)
OKLCHoklch(46.93% 0.101 118.8)
XYZxyz(8.2234, 10.7104, 2.2063)
Luminance0.1071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#556212 #1F1262
analogous
#624712 #556212 #2D6212
triadic
#556212 #125562 #621255
tetradic
#556212 #126247 #1F1262 #62122D
square
#556212 #126247 #1F1262 #62122D
split-complementary
#556212 #122D62 #471262
monochromatic
#161A05 #282E09 #556212 #82961B #AFC925

Accessibility & contrast

On white

6.68
#556212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#556212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #556212
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##556212#FFFFFF#000000##FFFFFF
##5562121.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #556212;
/* rgb */ color: rgb(85, 98, 18);
/* oklch */ color: oklch(46.9% 0.101 118.8);
Tailwind
colors: {
  custom: {
    50: '#888e58',
    500: '#556212',
    950: '#000000',
  },
}
SCSS
$custom: #556212;
$custom-light: #888e58;
$custom-dark: #000000;
JSON
{
  "hex": "#556212",
  "rgb": {
    "r": 85,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 69.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46933,
    "c": 0.10141,
    "h": 118.8
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#556212
secondary
#46369A
accent
#3CEC59
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #556212

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

Preview Lab → · Contrast checker → · Palette generator →

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