#515A18#515A18

#515A18 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.6% C 0.089 H 116.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#515A18
RGBrgb(81, 90, 24)
HSLhsl(68, 58%, 22%)
HSVhsv(68, 73%, 35%)
CMYKcmyk(10%, 0%, 73.3%, 64.7%)
CIE-LABlab(36.23, -13.42, 35.20)
CIE-LCHlch(36.23, 37.67, 110.87°)
OKLaboklab(44.56% -0.04 0.0791)
OKLCHoklch(44.56% 0.089 116.8)
XYZxyz(7.2145, 9.1277, 2.2457)
Luminance0.0913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515A18 #21185A
analogous
#5A4218 #515A18 #305A18
triadic
#515A18 #18515A #5A1851
tetradic
#515A18 #185A42 #21185A #5A1830
square
#515A18 #185A42 #21185A #5A1830
split-complementary
#515A18 #18305A #42185A
monochromatic
#161806 #262A0B #515A18 #7C8A25 #A8BB32

Accessibility & contrast

On white

7.43
#515A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#515A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515A18
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515A18#FFFFFF#000000##FFFFFF
##515A181.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550E
Deuteranopia (green-blind)
#60561D
Tritanopia (blue-blind)
#56554D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #515a18;
/* rgb */ color: rgb(81, 90, 24);
/* oklch */ color: oklch(44.6% 0.089 116.8);
Tailwind
colors: {
  custom: {
    50: '#848859',
    500: '#515a18',
    950: '#000000',
  },
}
SCSS
$custom: #515a18;
$custom-light: #848859;
$custom-dark: #000000;
JSON
{
  "hex": "#515a18",
  "rgb": {
    "r": 81,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 68.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.44564,
    "c": 0.08861,
    "h": 116.8
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#515A18
secondary
#493D91
accent
#47E15C
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #515A18

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

Preview Lab → · Contrast checker → · Palette generator →

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