#816F18#816F18

#816F18 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.103 H 96.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#816F18
RGBrgb(129, 111, 24)
HSLhsl(50, 69%, 30%)
HSVhsv(50, 81%, 51%)
CMYKcmyk(0%, 14%, 81.4%, 49.4%)
CIE-LABlab(47.11, -2.40, 47.17)
CIE-LCHlch(47.11, 47.23, 92.91°)
OKLaboklab(54.33% -0.012 0.1025)
OKLCHoklch(54.33% 0.103 96.7)
XYZxyz(14.9034, 16.1028, 3.1871)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816F18 #182A81
analogous
#813A18 #816F18 #5F8118
triadic
#816F18 #18816F #6F1881
tetradic
#816F18 #18813A #182A81 #81185F
square
#816F18 #18813A #182A81 #81185F
split-complementary
#816F18 #185F81 #3A1881
monochromatic
#1A1605 #4D430E #816F18 #B59B22 #DABF39

Accessibility & contrast

On white

4.98
#816F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#816F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #816F18
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816F18#FFFFFF#000000##FFFFFF
##816F181.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C04
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#8C665F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #816f18;
/* rgb */ color: rgb(129, 111, 24);
/* oklch */ color: oklch(54.3% 0.103 96.7);
Tailwind
colors: {
  custom: {
    50: '#a9985d',
    500: '#816f18',
    950: '#000000',
  },
}
SCSS
$custom: #816f18;
$custom-light: #a9985d;
$custom-dark: #000000;
JSON
{
  "hex": "#816f18",
  "rgb": {
    "r": 129,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 49.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.54326,
    "c": 0.10319,
    "h": 96.7
  },
  "luminance": 0.16102
}

Semantic roles & 50–950 ramp

primary
#816F18
secondary
#4054B5
accent
#5AEB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #816F18

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

Preview Lab → · Contrast checker → · Palette generator →

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