#515112#515112

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

Color values

HEX#515112
RGBrgb(81, 81, 18)
HSLhsl(60, 64%, 19%)
HSVhsv(60, 78%, 32%)
CMYKcmyk(0%, 0%, 77.8%, 68.2%)
CIE-LABlab(33.30, -8.62, 34.87)
CIE-LCHlch(33.30, 35.92, 103.89°)
OKLaboklab(42.21% -0.0273 0.0772)
OKLCHoklch(42.21% 0.082 109.5)
XYZxyz(6.4452, 7.6781, 1.7147)
Luminance0.0768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515112 #121251
analogous
#513212 #515112 #325112
triadic
#515112 #125151 #511251
tetradic
#515112 #125132 #121251 #511232
square
#515112 #125132 #121251 #511232
split-complementary
#515112 #123251 #321251
monochromatic
#191906 #1F1F07 #515112 #83831D #B5B528

Accessibility & contrast

On white

8.28
#515112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #515112
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515112#FFFFFF#000000##FFFFFF
##5151121.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#574B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #515112;
/* rgb */ color: rgb(81, 81, 18);
/* oklch */ color: oklch(42.2% 0.082 109.5);
Tailwind
colors: {
  custom: {
    50: '#848155',
    500: '#515112',
    950: '#000000',
  },
}
SCSS
$custom: #515112;
$custom-light: #848155;
$custom-dark: #000000;
JSON
{
  "hex": "#515112",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.08189,
    "h": 109.5
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#515112
secondary
#35358A
accent
#41E741
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515112

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

Preview Lab → · Contrast checker → · Palette generator →

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