#8A7221#8A7221

#8A7221 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 56.0% C 0.101 H 91.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A7221
RGBrgb(138, 114, 33)
HSLhsl(46, 61%, 34%)
HSVhsv(46, 76%, 54%)
CMYKcmyk(0%, 17.4%, 76.1%, 45.9%)
CIE-LABlab(48.94, 0.53, 45.81)
CIE-LCHlch(48.94, 45.81, 89.34°)
OKLaboklab(56.01% -0.0032 0.1011)
OKLCHoklch(56.01% 0.101 91.8)
XYZxyz(16.7740, 17.5487, 3.9423)
Luminance0.1755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7221 #21398A
analogous
#8A3D21 #8A7221 #6D8A21
triadic
#8A7221 #218A72 #72218A
tetradic
#8A7221 #218A3D #21398A #8A216D
square
#8A7221 #218A3D #21398A #8A216D
split-complementary
#8A7221 #216D8A #3D218A
monochromatic
#272009 #594915 #8A7221 #BB9B2D #D5B750

Accessibility & contrast

On white

4.66
#8A7221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A7221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7221
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7221#FFFFFF#000000##FFFFFF
##8A72211.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7014
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#966862
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7221;
/* rgb */ color: rgb(138, 114, 33);
/* oklch */ color: oklch(56.0% 0.101 91.8);
Tailwind
colors: {
  custom: {
    50: '#b09a62',
    500: '#8a7221',
    950: '#000000',
  },
}
SCSS
$custom: #8a7221;
$custom-light: #b09a62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7221",
  "rgb": {
    "r": 138,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 46.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56012,
    "c": 0.10113,
    "h": 91.8
  },
  "luminance": 0.17548
}

Semantic roles & 50–950 ramp

primary
#8A7221
secondary
#4E67B9
accent
#68E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7221

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

Preview Lab → · Contrast checker → · Palette generator →

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