#515018#515018

#515018 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.076 H 108.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#515018
RGBrgb(81, 80, 24)
HSLhsl(59, 54%, 21%)
HSVhsv(59, 70%, 32%)
CMYKcmyk(0%, 1.2%, 70.4%, 68.2%)
CIE-LABlab(33.03, -7.65, 31.92)
CIE-LCHlch(33.03, 32.82, 103.48°)
OKLaboklab(42.01% -0.0238 0.0722)
OKLCHoklch(42.01% 0.076 108.3)
XYZxyz(6.4271, 7.5528, 1.9833)
Luminance0.0755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515018 #181951
analogous
#513318 #515018 #355118
triadic
#515018 #185150 #501851
tetradic
#515018 #185133 #181951 #511835
square
#515018 #185133 #181951 #511835
split-complementary
#515018 #183551 #331851
monochromatic
#181707 #22210A #515018 #807F26 #AFAD34

Accessibility & contrast

On white

8.36
#515018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#515018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515018
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515018#FFFFFF#000000##FFFFFF
##5150181.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D11
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#574B44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #515018;
/* rgb */ color: rgb(81, 80, 24);
/* oklch */ color: oklch(42.0% 0.076 108.3);
Tailwind
colors: {
  custom: {
    50: '#848058',
    500: '#515018',
    950: '#000000',
  },
}
SCSS
$custom: #515018;
$custom-light: #848058;
$custom-dark: #000000;
JSON
{
  "hex": "#515018",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 58.947,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.07598,
    "h": 108.3
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#515018
secondary
#3D3E88
accent
#4DDE4A
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515018

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

Preview Lab → · Contrast checker → · Palette generator →

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