#515712#515712

#515712 is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 43.7% C 0.089 H 114.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#515712
RGBrgb(81, 87, 18)
HSLhsl(65, 66%, 21%)
HSVhsv(65, 79%, 34%)
CMYKcmyk(6.9%, 0%, 79.3%, 65.9%)
CIE-LABlab(35.22, -12.09, 36.71)
CIE-LCHlch(35.22, 38.65, 108.23°)
OKLaboklab(43.74% -0.0369 0.0811)
OKLCHoklch(43.74% 0.089 114.5)
XYZxyz(6.9109, 8.6095, 1.8699)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515712 #181257
analogous
#573A12 #515712 #2E5712
triadic
#515712 #125157 #571251
tetradic
#515712 #12573A #181257 #57122E
square
#515712 #12573A #181257 #57122E
split-complementary
#515712 #122E57 #3A1257
monochromatic
#181905 #222408 #515712 #808A1C #AFBC27

Accessibility & contrast

On white

7.72
#515712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#515712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515712
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515712#FFFFFF#000000##FFFFFF
##5157121.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5205
Deuteranopia (green-blind)
#5E5318
Tritanopia (blue-blind)
#57514A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #515712;
/* rgb */ color: rgb(81, 87, 18);
/* oklch */ color: oklch(43.7% 0.089 114.5);
Tailwind
colors: {
  custom: {
    50: '#848656',
    500: '#515712',
    950: '#000000',
  },
}
SCSS
$custom: #515712;
$custom-light: #848656;
$custom-dark: #000000;
JSON
{
  "hex": "#515712",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 65.217,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.43742,
    "c": 0.08912,
    "h": 114.5
  },
  "luminance": 0.08609
}

Semantic roles & 50–950 ramp

primary
#515712
secondary
#3D3590
accent
#3FE94E
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #515712

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

Preview Lab → · Contrast checker → · Palette generator →

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