#8A7222#8A7222

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

Color values

HEX#8A7222
RGBrgb(138, 114, 34)
HSLhsl(46, 60%, 34%)
HSVhsv(46, 75%, 54%)
CMYKcmyk(0%, 17.4%, 75.4%, 45.9%)
CIE-LABlab(48.95, 0.58, 45.40)
CIE-LCHlch(48.95, 45.41, 89.27°)
OKLaboklab(56.02% -0.0029 0.1004)
OKLCHoklch(56.02% 0.1 91.7)
XYZxyz(16.7882, 17.5544, 4.0171)
Luminance0.1755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7222 #223A8A
analogous
#8A3E22 #8A7222 #6E8A22
triadic
#8A7222 #228A72 #72228A
tetradic
#8A7222 #228A3E #223A8A #8A226E
square
#8A7222 #228A3E #223A8A #8A226E
split-complementary
#8A7222 #226E8A #3E228A
monochromatic
#28210A #594916 #8A7222 #BB9B2E #D4B652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7222#FFFFFF#000000##FFFFFF
##8A72221.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)
#7F7015
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#966862
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7222;
/* rgb */ color: rgb(138, 114, 34);
/* oklch */ color: oklch(56.0% 0.100 91.7);
Tailwind
colors: {
  custom: {
    50: '#b09a63',
    500: '#8a7222',
    950: '#000000',
  },
}
SCSS
$custom: #8a7222;
$custom-light: #b09a63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7222",
  "rgb": {
    "r": 138,
    "g": 114,
    "b": 34
  },
  "hsl": {
    "h": 46.154,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.10047,
    "h": 91.7
  },
  "luminance": 0.17553
}

Semantic roles & 50–950 ramp

primary
#8A7222
secondary
#5068B8
accent
#69E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7222

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

Preview Lab → · Contrast checker → · Palette generator →

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