#515211#515211

#515211 is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.5% C 0.084 H 110.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#515211
RGBrgb(81, 82, 17)
HSLhsl(61, 66%, 19%)
HSVhsv(61, 79%, 32%)
CMYKcmyk(1.2%, 0%, 79.3%, 67.8%)
CIE-LABlab(33.61, -9.26, 35.58)
CIE-LCHlch(33.61, 36.77, 104.59°)
OKLaboklab(42.45% -0.0292 0.0785)
OKLCHoklch(42.45% 0.084 110.4)
XYZxyz(6.5120, 7.8246, 1.6975)
Luminance0.0782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515211 #121152
analogous
#523311 #515211 #315211
triadic
#515211 #115152 #521151
tetradic
#515211 #115233 #121152 #521131
square
#515211 #115233 #121152 #521131
split-complementary
#515211 #113152 #331152
monochromatic
#191905 #1F1F06 #515211 #83851C #B5B726

Accessibility & contrast

On white

8.19
#515211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#515211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515211
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515211#FFFFFF#000000##FFFFFF
##5152111.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E05
Deuteranopia (green-blind)
#5A5016
Tritanopia (blue-blind)
#574C46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #515211;
/* rgb */ color: rgb(81, 82, 17);
/* oklch */ color: oklch(42.5% 0.084 110.4);
Tailwind
colors: {
  custom: {
    50: '#848255',
    500: '#515211',
    950: '#000000',
  },
}
SCSS
$custom: #515211;
$custom-light: #848255;
$custom-dark: #000000;
JSON
{
  "hex": "#515211",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 60.923,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42453,
    "c": 0.08375,
    "h": 110.4
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#515211
secondary
#35348B
accent
#3FE942
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515211

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

Preview Lab → · Contrast checker → · Palette generator →

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