#515A12#515A12

#515A12 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.5% C 0.093 H 116.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#515A12
RGBrgb(81, 90, 18)
HSLhsl(68, 67%, 21%)
HSVhsv(68, 80%, 35%)
CMYKcmyk(10%, 0%, 80%, 64.7%)
CIE-LABlab(36.19, -13.78, 37.63)
CIE-LCHlch(36.19, 40.07, 110.12°)
OKLaboklab(44.52% -0.0416 0.083)
OKLCHoklch(44.52% 0.093 116.6)
XYZxyz(7.1589, 9.1054, 1.9525)
Luminance0.0911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515A12 #1B125A
analogous
#5A3F12 #515A12 #2D5A12
triadic
#515A12 #12515A #5A1251
tetradic
#515A12 #125A3F #1B125A #5A122D
square
#515A12 #125A3F #1B125A #5A122D
split-complementary
#515A12 #122D5A #3F125A
monochromatic
#171A05 #232708 #515A12 #7F8D1C #ADC026

Accessibility & contrast

On white

7.44
#515A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#515A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515A12
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515A12#FFFFFF#000000##FFFFFF
##515A121.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#605618
Tritanopia (blue-blind)
#57544C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #515a12;
/* rgb */ color: rgb(81, 90, 18);
/* oklch */ color: oklch(44.5% 0.093 116.6);
Tailwind
colors: {
  custom: {
    50: '#848856',
    500: '#515a12',
    950: '#000000',
  },
}
SCSS
$custom: #515a12;
$custom-light: #848856;
$custom-dark: #000000;
JSON
{
  "hex": "#515a12",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 67.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44517,
    "c": 0.09289,
    "h": 116.6
  },
  "luminance": 0.09105
}

Semantic roles & 50–950 ramp

primary
#515A12
secondary
#413593
accent
#3EEA54
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #515A12

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

Preview Lab → · Contrast checker → · Palette generator →

#515A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva