#514F18#514F18

#514F18 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.8% C 0.075 H 107.2°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#514F18
RGBrgb(81, 79, 24)
HSLhsl(58, 54%, 21%)
HSVhsv(58, 70%, 32%)
CMYKcmyk(0%, 2.5%, 70.4%, 68.2%)
CIE-LABlab(32.72, -7.06, 31.59)
CIE-LCHlch(32.72, 32.37, 102.59°)
OKLaboklab(41.75% -0.0222 0.0715)
OKLCHoklch(41.75% 0.075 107.2)
XYZxyz(6.3544, 7.4074, 1.9590)
Luminance0.0741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514F18 #181A51
analogous
#513218 #514F18 #365118
triadic
#514F18 #18514F #4F1851
tetradic
#514F18 #185132 #181A51 #511836
square
#514F18 #185132 #181A51 #511836
split-complementary
#514F18 #183651 #321851
monochromatic
#181707 #22210A #514F18 #807D26 #AFAB34

Accessibility & contrast

On white

8.46
#514F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#514F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514F18
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514F18#FFFFFF#000000##FFFFFF
##514F181.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C11
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#574A44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #514f18;
/* rgb */ color: rgb(81, 79, 24);
/* oklch */ color: oklch(41.8% 0.075 107.2);
Tailwind
colors: {
  custom: {
    50: '#848058',
    500: '#514f18',
    950: '#000000',
  },
}
SCSS
$custom: #514f18;
$custom-light: #848058;
$custom-dark: #000000;
JSON
{
  "hex": "#514f18",
  "rgb": {
    "r": 81,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 57.895,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.07481,
    "h": 107.2
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#514F18
secondary
#3D4088
accent
#4FDE4A
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #514F18

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

Preview Lab → · Contrast checker → · Palette generator →

#514F18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva