#515812#515812

#515812 is a dark, moderate yellow. Relative luminance 0.088; OKLCH L 44.0% C 0.090 H 115.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#515812
RGBrgb(81, 88, 18)
HSLhsl(66, 66%, 21%)
HSVhsv(66, 80%, 35%)
CMYKcmyk(8%, 0%, 79.5%, 65.5%)
CIE-LABlab(35.54, -12.66, 37.02)
CIE-LCHlch(35.54, 39.12, 108.88°)
OKLaboklab(44% -0.0385 0.0818)
OKLCHoklch(44% 0.09 115.2)
XYZxyz(6.9924, 8.7726, 1.8971)
Luminance0.0877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515812 #191258
analogous
#583C12 #515812 #2E5812
triadic
#515812 #125158 #581251
tetradic
#515812 #12583C #191258 #58122E
square
#515812 #12583C #191258 #58122E
split-complementary
#515812 #122E58 #3C1258
monochromatic
#171905 #222508 #515812 #808B1C #AFBE27

Accessibility & contrast

On white

7.62
#515812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#515812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515812
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515812#FFFFFF#000000##FFFFFF
##5158121.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#5E5418
Tritanopia (blue-blind)
#57524B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #515812;
/* rgb */ color: rgb(81, 88, 18);
/* oklch */ color: oklch(44.0% 0.090 115.2);
Tailwind
colors: {
  custom: {
    50: '#848756',
    500: '#515812',
    950: '#000000',
  },
}
SCSS
$custom: #515812;
$custom-light: #848756;
$custom-dark: #000000;
JSON
{
  "hex": "#515812",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 66,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.44,
    "c": 0.09037,
    "h": 115.2
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#515812
secondary
#3E3591
accent
#3FE950
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #515812

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

Preview Lab → · Contrast checker → · Palette generator →

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