#515214#515214

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

Color values

HEX#515214
RGBrgb(81, 82, 20)
HSLhsl(61, 61%, 20%)
HSVhsv(61, 76%, 32%)
CMYKcmyk(1.2%, 0%, 75.6%, 67.8%)
CIE-LABlab(33.64, -9.09, 34.35)
CIE-LCHlch(33.64, 35.54, 104.82°)
OKLaboklab(42.48% -0.0284 0.0765)
OKLCHoklch(42.48% 0.082 110.3)
XYZxyz(6.5371, 7.8346, 1.8296)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515214 #151452
analogous
#523414 #515214 #325214
triadic
#515214 #145152 #521451
tetradic
#515214 #145234 #151452 #521432
square
#515214 #145234 #151452 #521432
split-complementary
#515214 #143252 #341452
monochromatic
#181906 #202108 #515214 #828320 #B2B42C

Accessibility & contrast

On white

8.18
#515214 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#515214 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515214
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515214#FFFFFF#000000##FFFFFF
##5152141.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #515214;
/* rgb */ color: rgb(81, 82, 20);
/* oklch */ color: oklch(42.5% 0.082 110.3);
Tailwind
colors: {
  custom: {
    50: '#848256',
    500: '#515214',
    950: '#000000',
  },
}
SCSS
$custom: #515214;
$custom-light: #848256;
$custom-dark: #000000;
JSON
{
  "hex": "#515214",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 60.968,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.42477,
    "c": 0.08161,
    "h": 110.3
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#515214
secondary
#39388A
accent
#44E446
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515214

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

Preview Lab → · Contrast checker → · Palette generator →

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