#8A7216#8A7216

#8A7216 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.9% C 0.107 H 93.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A7216
RGBrgb(138, 114, 22)
HSLhsl(48, 73%, 31%)
HSVhsv(48, 84%, 54%)
CMYKcmyk(0%, 17.4%, 84.1%, 45.9%)
CIE-LABlab(48.88, 0.08, 49.76)
CIE-LCHlch(48.88, 49.76, 89.91°)
OKLaboklab(55.94% -0.0056 0.1072)
OKLCHoklch(55.94% 0.107 93)
XYZxyz(16.6443, 17.4969, 3.2595)
Luminance0.1750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7216 #162E8A
analogous
#8A3816 #8A7216 #688A16
triadic
#8A7216 #168A72 #72168A
tetradic
#8A7216 #168A38 #162E8A #8A1668
square
#8A7216 #168A38 #162E8A #8A1668
split-complementary
#8A7216 #16688A #38168A
monochromatic
#201B05 #55460E #8A7216 #BF9E1E #E0BE3B

Accessibility & contrast

On white

4.67
#8A7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A7216 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7216
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7216#FFFFFF#000000##FFFFFF
##8A72161.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#85771D
Tritanopia (blue-blind)
#966861
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7216;
/* rgb */ color: rgb(138, 114, 22);
/* oklch */ color: oklch(55.9% 0.107 93.0);
Tailwind
colors: {
  custom: {
    50: '#b09a5d',
    500: '#8a7216',
    950: '#000000',
  },
}
SCSS
$custom: #8a7216;
$custom-light: #b09a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7216",
  "rgb": {
    "r": 138,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 47.586,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55941,
    "c": 0.1073,
    "h": 93
  },
  "luminance": 0.17496
}

Semantic roles & 50–950 ramp

primary
#8A7216
secondary
#3E58BE
accent
#5EEF39
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A7216

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

Preview Lab → · Contrast checker → · Palette generator →

#8A7216 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva