#515315#515315

#515315 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.7% C 0.082 H 111.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#515315
RGBrgb(81, 83, 21)
HSLhsl(62, 60%, 20%)
HSVhsv(62, 75%, 33%)
CMYKcmyk(2.4%, 0%, 74.7%, 67.5%)
CIE-LABlab(33.96, -9.61, 34.24)
CIE-LCHlch(33.96, 35.57, 105.68°)
OKLaboklab(42.74% -0.0297 0.0765)
OKLCHoklch(42.74% 0.082 111.2)
XYZxyz(6.6222, 7.9902, 1.9027)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515315 #171553
analogous
#533615 #515315 #325315
triadic
#515315 #155153 #531551
tetradic
#515315 #155336 #171553 #531532
square
#515315 #155336 #171553 #531532
split-complementary
#515315 #153253 #361553
monochromatic
#181806 #212209 #515315 #818421 #B0B52E

Accessibility & contrast

On white

8.08
#515315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#515315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515315
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515315#FFFFFF#000000##FFFFFF
##5153151.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0B
Deuteranopia (green-blind)
#5A5119
Tritanopia (blue-blind)
#574D47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #515315;
/* rgb */ color: rgb(81, 83, 21);
/* oklch */ color: oklch(42.7% 0.082 111.2);
Tailwind
colors: {
  custom: {
    50: '#848357',
    500: '#515315',
    950: '#000000',
  },
}
SCSS
$custom: #515315;
$custom-light: #848357;
$custom-dark: #000000;
JSON
{
  "hex": "#515315",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 61.935,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.4274,
    "c": 0.08205,
    "h": 111.2
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#515315
secondary
#3C398B
accent
#45E34A
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515315

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

Preview Lab → · Contrast checker → · Palette generator →

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