#514816#514816

#514816 is a dark, moderate yellow. Relative luminance 0.064; OKLCH L 40.0% C 0.069 H 99.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#514816
RGBrgb(81, 72, 22)
HSLhsl(51, 57%, 20%)
HSVhsv(51, 73%, 32%)
CMYKcmyk(0%, 11.1%, 72.8%, 68.2%)
CIE-LABlab(30.50, -2.96, 30.25)
CIE-LCHlch(30.50, 30.39, 95.59°)
OKLaboklab(39.99% -0.0108 0.0683)
OKLCHoklch(39.99% 0.069 99)
XYZxyz(5.8558, 6.4423, 1.6939)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514816 #161F51
analogous
#512A16 #514816 #3D5116
triadic
#514816 #165148 #481651
tetradic
#514816 #16512A #161F51 #51163D
square
#514816 #16512A #161F51 #51163D
split-complementary
#514816 #163D51 #2A1651
monochromatic
#181507 #211D09 #514816 #817323 #B19E30

Accessibility & contrast

On white

9.18
#514816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#514816 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514816
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514816#FFFFFF#000000##FFFFFF
##5148161.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4610
Deuteranopia (green-blind)
#524919
Tritanopia (blue-blind)
#58423E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #514816;
/* rgb */ color: rgb(81, 72, 22);
/* oklch */ color: oklch(40.0% 0.069 99.0);
Tailwind
colors: {
  custom: {
    50: '#847a56',
    500: '#514816',
    950: '#000000',
  },
}
SCSS
$custom: #514816;
$custom-light: #847a56;
$custom-dark: #000000;
JSON
{
  "hex": "#514816",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 22
  },
  "hsl": {
    "h": 50.847,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39988,
    "c": 0.0691,
    "h": 99
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#514816
secondary
#3A4688
accent
#5FE147
background
#F8F7F5
surface
#EFEDE9
border
#CAC8C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #514816

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

Preview Lab → · Contrast checker → · Palette generator →

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