#816D18#816D18

#816D18 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.9% C 0.102 H 94.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#816D18
RGBrgb(129, 109, 24)
HSLhsl(49, 69%, 30%)
HSVhsv(49, 81%, 51%)
CMYKcmyk(0%, 15.5%, 81.4%, 49.4%)
CIE-LABlab(46.54, -1.26, 46.66)
CIE-LCHlch(46.54, 46.67, 91.54°)
OKLaboklab(53.88% -0.0087 0.1014)
OKLCHoklch(53.88% 0.102 94.9)
XYZxyz(14.6876, 15.6712, 3.1152)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816D18 #182C81
analogous
#813818 #816D18 #618118
triadic
#816D18 #18816D #6D1881
tetradic
#816D18 #188138 #182C81 #811861
square
#816D18 #188138 #182C81 #811861
split-complementary
#816D18 #186181 #381881
monochromatic
#1A1605 #4D410E #816D18 #B59922 #DABC39

Accessibility & contrast

On white

5.08
#816D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#816D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #816D18
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816D18#FFFFFF#000000##FFFFFF
##816D181.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B05
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#8C645D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #816d18;
/* rgb */ color: rgb(129, 109, 24);
/* oklch */ color: oklch(53.9% 0.102 94.9);
Tailwind
colors: {
  custom: {
    50: '#a9965d',
    500: '#816d18',
    950: '#000000',
  },
}
SCSS
$custom: #816d18;
$custom-light: #a9965d;
$custom-dark: #000000;
JSON
{
  "hex": "#816d18",
  "rgb": {
    "r": 129,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 48.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.53876,
    "c": 0.10175,
    "h": 94.9
  },
  "luminance": 0.1567
}

Semantic roles & 50–950 ramp

primary
#816D18
secondary
#4056B5
accent
#5EEB3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #816D18

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

Preview Lab → · Contrast checker → · Palette generator →

#816D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva