#515B18#515B18

#515B18 is a dark, moderate yellow. Relative luminance 0.093; OKLCH L 44.8% C 0.090 H 117.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#515B18
RGBrgb(81, 91, 24)
HSLhsl(69, 58%, 23%)
HSVhsv(69, 74%, 36%)
CMYKcmyk(11%, 0%, 73.6%, 64.3%)
CIE-LABlab(36.55, -13.98, 35.53)
CIE-LCHlch(36.55, 38.18, 111.48°)
OKLaboklab(44.82% -0.0416 0.0798)
OKLCHoklch(44.82% 0.09 117.5)
XYZxyz(7.2995, 9.2975, 2.2740)
Luminance0.0930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515B18 #22185B
analogous
#5B4318 #515B18 #305B18
triadic
#515B18 #18515B #5B1851
tetradic
#515B18 #185B43 #22185B #5B1830
square
#515B18 #185B43 #22185B #5B1830
split-complementary
#515B18 #18305B #43185B
monochromatic
#161806 #262B0B #515B18 #7C8B25 #A7BC32

Accessibility & contrast

On white

7.34
#515B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#515B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515B18
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515B18#FFFFFF#000000##FFFFFF
##515B181.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560E
Deuteranopia (green-blind)
#60561D
Tritanopia (blue-blind)
#56564E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #515b18;
/* rgb */ color: rgb(81, 91, 24);
/* oklch */ color: oklch(44.8% 0.090 117.5);
Tailwind
colors: {
  custom: {
    50: '#84895a',
    500: '#515b18',
    950: '#000000',
  },
}
SCSS
$custom: #515b18;
$custom-light: #84895a;
$custom-dark: #000000;
JSON
{
  "hex": "#515b18",
  "rgb": {
    "r": 81,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 68.955,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44823,
    "c": 0.08993,
    "h": 117.5
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#515B18
secondary
#4A3D92
accent
#46E15D
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #515B18

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

Preview Lab → · Contrast checker → · Palette generator →

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