#515218#515218

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

Color values

HEX#515218
RGBrgb(81, 82, 24)
HSLhsl(61, 55%, 21%)
HSVhsv(61, 71%, 32%)
CMYKcmyk(1.2%, 0%, 70.7%, 67.8%)
CIE-LABlab(33.67, -8.83, 32.58)
CIE-LCHlch(33.67, 33.75, 105.16°)
OKLaboklab(42.51% -0.0271 0.0735)
OKLCHoklch(42.51% 0.078 110.3)
XYZxyz(6.5757, 7.8500, 2.0328)
Luminance0.0785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515218 #191852
analogous
#523618 #515218 #345218
triadic
#515218 #185152 #521851
tetradic
#515218 #185236 #191852 #521834
square
#515218 #185236 #191852 #521834
split-complementary
#515218 #183452 #361852
monochromatic
#171807 #22230A #515218 #808126 #AFB134

Accessibility & contrast

On white

8.17
#515218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #515218
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515218#FFFFFF#000000##FFFFFF
##5152181.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E10
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#574D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #515218;
/* rgb */ color: rgb(81, 82, 24);
/* oklch */ color: oklch(42.5% 0.078 110.3);
Tailwind
colors: {
  custom: {
    50: '#848258',
    500: '#515218',
    950: '#000000',
  },
}
SCSS
$custom: #515218;
$custom-light: #848258;
$custom-dark: #000000;
JSON
{
  "hex": "#515218",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 61.034,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42514,
    "c": 0.07839,
    "h": 110.3
  },
  "luminance": 0.0785
}

Semantic roles & 50–950 ramp

primary
#515218
secondary
#3E3D89
accent
#4ADE4C
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515218

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

Preview Lab → · Contrast checker → · Palette generator →

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