#515C12#515C12

#515C12 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.0% C 0.095 H 117.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#515C12
RGBrgb(81, 92, 18)
HSLhsl(69, 67%, 22%)
HSVhsv(69, 80%, 36%)
CMYKcmyk(12%, 0%, 80.4%, 63.9%)
CIE-LABlab(36.83, -14.90, 38.24)
CIE-LCHlch(36.83, 41.04, 111.29°)
OKLaboklab(45.04% -0.0447 0.0843)
OKLCHoklch(45.04% 0.095 117.9)
XYZxyz(7.3298, 9.4474, 2.0095)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515C12 #1D125C
analogous
#5C4212 #515C12 #2C5C12
triadic
#515C12 #12515C #5C1251
tetradic
#515C12 #125C42 #1D125C #5C122C
square
#515C12 #125C42 #1D125C #5C122C
split-complementary
#515C12 #122C5C #42125C
monochromatic
#171A05 #242908 #515C12 #7E8F1C #ABC226

Accessibility & contrast

On white

7.27
#515C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#515C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515C12
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515C12#FFFFFF#000000##FFFFFF
##515C121.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635603
Deuteranopia (green-blind)
#625719
Tritanopia (blue-blind)
#56564E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #515c12;
/* rgb */ color: rgb(81, 92, 18);
/* oklch */ color: oklch(45.0% 0.095 117.9);
Tailwind
colors: {
  custom: {
    50: '#848a57',
    500: '#515c12',
    950: '#000000',
  },
}
SCSS
$custom: #515c12;
$custom-light: #848a57;
$custom-dark: #000000;
JSON
{
  "hex": "#515c12",
  "rgb": {
    "r": 81,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 68.919,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.45035,
    "c": 0.09544,
    "h": 117.9
  },
  "luminance": 0.09447
}

Semantic roles & 50–950 ramp

primary
#515C12
secondary
#443594
accent
#3EEA57
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #515C12

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

Preview Lab → · Contrast checker → · Palette generator →

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