#515D12#515D12

#515D12 is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.3% C 0.097 H 118.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#515D12
RGBrgb(81, 93, 18)
HSLhsl(70, 68%, 22%)
HSVhsv(70, 81%, 36%)
CMYKcmyk(12.9%, 0%, 80.6%, 63.5%)
CIE-LABlab(37.15, -15.45, 38.54)
CIE-LCHlch(37.15, 41.52, 111.85°)
OKLaboklab(45.3% -0.0462 0.085)
OKLCHoklch(45.3% 0.097 118.6)
XYZxyz(7.4170, 9.6218, 2.0386)
Luminance0.0962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515D12 #1E125D
analogous
#5D4412 #515D12 #2C5D12
triadic
#515D12 #12515D #5D1251
tetradic
#515D12 #125D44 #1E125D #5D122C
square
#515D12 #125D44 #1E125D #5D122C
split-complementary
#515D12 #122C5D #44125D
monochromatic
#161A05 #242A08 #515D12 #7E901C #AAC426

Accessibility & contrast

On white

7.18
#515D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#515D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515D12
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515D12#FFFFFF#000000##FFFFFF
##515D121.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645703
Deuteranopia (green-blind)
#625819
Tritanopia (blue-blind)
#56574F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #515d12;
/* rgb */ color: rgb(81, 93, 18);
/* oklch */ color: oklch(45.3% 0.097 118.6);
Tailwind
colors: {
  custom: {
    50: '#848a57',
    500: '#515d12',
    950: '#000000',
  },
}
SCSS
$custom: #515d12;
$custom-light: #848a57;
$custom-dark: #000000;
JSON
{
  "hex": "#515d12",
  "rgb": {
    "r": 81,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 69.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.45295,
    "c": 0.09672,
    "h": 118.6
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#515D12
secondary
#453595
accent
#3DEA59
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #515D12

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

Preview Lab → · Contrast checker → · Palette generator →

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