#515412#515412

#515412 is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.0% C 0.085 H 112.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#515412
RGBrgb(81, 84, 18)
HSLhsl(63, 65%, 20%)
HSVhsv(63, 79%, 33%)
CMYKcmyk(3.6%, 0%, 78.6%, 67.1%)
CIE-LABlab(34.26, -10.37, 35.80)
CIE-LCHlch(34.26, 37.27, 106.16°)
OKLaboklab(42.97% -0.0321 0.0792)
OKLCHoklch(42.97% 0.085 112.1)
XYZxyz(6.6731, 8.1338, 1.7906)
Luminance0.0813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515412 #151254
analogous
#543612 #515412 #305412
triadic
#515412 #125154 #541251
tetradic
#515412 #125436 #151254 #541230
square
#515412 #125436 #151254 #541230
split-complementary
#515412 #123054 #361254
monochromatic
#181905 #202207 #515412 #82861D #B2B928

Accessibility & contrast

On white

7.99
#515412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#515412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515412
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515412#FFFFFF#000000##FFFFFF
##5154121.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#574E47
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #515412;
/* rgb */ color: rgb(81, 84, 18);
/* oklch */ color: oklch(43.0% 0.085 112.1);
Tailwind
colors: {
  custom: {
    50: '#848355',
    500: '#515412',
    950: '#000000',
  },
}
SCSS
$custom: #515412;
$custom-light: #848355;
$custom-dark: #000000;
JSON
{
  "hex": "#515412",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 62.727,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.08545,
    "h": 112.1
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#515412
secondary
#39358D
accent
#40E848
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515412

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

Preview Lab → · Contrast checker → · Palette generator →

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