#514812#514812

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

Color values

HEX#514812
RGBrgb(81, 72, 18)
HSLhsl(51, 64%, 19%)
HSVhsv(51, 78%, 32%)
CMYKcmyk(0%, 11.1%, 77.8%, 68.2%)
CIE-LABlab(30.47, -3.21, 32.10)
CIE-LCHlch(30.47, 32.27, 95.72°)
OKLaboklab(39.95% -0.012 0.0714)
OKLCHoklch(39.95% 0.072 99.6)
XYZxyz(5.8202, 6.4280, 1.5063)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514812 #121B51
analogous
#512912 #514812 #3B5112
triadic
#514812 #125148 #481251
tetradic
#514812 #125129 #121B51 #51123B
square
#514812 #125129 #121B51 #51123B
split-complementary
#514812 #123B51 #291251
monochromatic
#191606 #1F1B07 #514812 #83751D #B5A128

Accessibility & contrast

On white

9.19
#514812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #514812
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514812#FFFFFF#000000##FFFFFF
##5148121.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50460A
Deuteranopia (green-blind)
#524915
Tritanopia (blue-blind)
#58423D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #514812;
/* rgb */ color: rgb(81, 72, 18);
/* oklch */ color: oklch(40.0% 0.072 99.6);
Tailwind
colors: {
  custom: {
    50: '#847a54',
    500: '#514812',
    950: '#000000',
  },
}
SCSS
$custom: #514812;
$custom-light: #847a54;
$custom-dark: #000000;
JSON
{
  "hex": "#514812",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 51.429,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.07238,
    "h": 99.6
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#514812
secondary
#35418A
accent
#59E741
background
#F8F7F4
surface
#EFEDE8
border
#CAC8C4
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #514812

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

Preview Lab → · Contrast checker → · Palette generator →

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