#515118#515118

#515118 is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.3% C 0.077 H 109.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#515118
RGBrgb(81, 81, 24)
HSLhsl(60, 54%, 21%)
HSVhsv(60, 70%, 32%)
CMYKcmyk(0%, 0%, 70.4%, 68.2%)
CIE-LABlab(33.35, -8.24, 32.25)
CIE-LCHlch(33.35, 33.29, 104.33°)
OKLaboklab(42.26% -0.0255 0.0728)
OKLCHoklch(42.26% 0.077 109.3)
XYZxyz(6.5008, 7.7003, 2.0078)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515118 #181851
analogous
#513418 #515118 #345118
triadic
#515118 #185151 #511851
tetradic
#515118 #185134 #181851 #511834
square
#515118 #185134 #181851 #511834
split-complementary
#515118 #183451 #341851
monochromatic
#181807 #22220A #515118 #808026 #AFAF34

Accessibility & contrast

On white

8.27
#515118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #515118
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515118#FFFFFF#000000##FFFFFF
##5151181.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D10
Deuteranopia (green-blind)
#594F1C
Tritanopia (blue-blind)
#574C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #515118;
/* rgb */ color: rgb(81, 81, 24);
/* oklch */ color: oklch(42.3% 0.077 109.3);
Tailwind
colors: {
  custom: {
    50: '#848158',
    500: '#515118',
    950: '#000000',
  },
}
SCSS
$custom: #515118;
$custom-light: #848158;
$custom-dark: #000000;
JSON
{
  "hex": "#515118",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.07717,
    "h": 109.3
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#515118
secondary
#3D3D88
accent
#4ADE4A
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515118

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

Preview Lab → · Contrast checker → · Palette generator →

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