#515116#515116

#515116 is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.2% C 0.079 H 109.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#515116
RGBrgb(81, 81, 22)
HSLhsl(60, 57%, 20%)
HSVhsv(60, 73%, 32%)
CMYKcmyk(0%, 0%, 72.8%, 68.2%)
CIE-LABlab(33.33, -8.38, 33.16)
CIE-LCHlch(33.33, 34.20, 104.18°)
OKLaboklab(42.24% -0.0261 0.0744)
OKLCHoklch(42.24% 0.079 109.4)
XYZxyz(6.4808, 7.6923, 1.9023)
Luminance0.0769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515116 #161651
analogous
#513316 #515116 #335116
triadic
#515116 #165151 #511651
tetradic
#515116 #165133 #161651 #511633
square
#515116 #165133 #161651 #511633
split-complementary
#515116 #163351 #331651
monochromatic
#181807 #212109 #515116 #818123 #B1B130

Accessibility & contrast

On white

8.27
#515116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#515116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515116
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515116#FFFFFF#000000##FFFFFF
##5151161.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0D
Deuteranopia (green-blind)
#594F1A
Tritanopia (blue-blind)
#574C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #515116;
/* rgb */ color: rgb(81, 81, 22);
/* oklch */ color: oklch(42.2% 0.079 109.4);
Tailwind
colors: {
  custom: {
    50: '#848157',
    500: '#515116',
    950: '#000000',
  },
}
SCSS
$custom: #515116;
$custom-light: #848157;
$custom-dark: #000000;
JSON
{
  "hex": "#515116",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.42241,
    "c": 0.07886,
    "h": 109.4
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#515116
secondary
#3A3A88
accent
#47E147
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515116

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

Preview Lab → · Contrast checker → · Palette generator →

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