#8A7021#8A7021

#8A7021 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.6% C 0.100 H 89.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A7021
RGBrgb(138, 112, 33)
HSLhsl(45, 61%, 34%)
HSVhsv(45, 76%, 54%)
CMYKcmyk(0%, 18.8%, 76.1%, 45.9%)
CIE-LABlab(48.39, 1.67, 45.27)
CIE-LCHlch(48.39, 45.30, 87.89°)
OKLaboklab(55.57% 0.0001 0.0999)
OKLCHoklch(55.57% 0.1 89.9)
XYZxyz(16.5509, 17.1025, 3.8679)
Luminance0.1710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7021 #213B8A
analogous
#8A3B21 #8A7021 #6F8A21
triadic
#8A7021 #218A70 #70218A
tetradic
#8A7021 #218A3B #213B8A #8A216F
square
#8A7021 #218A3B #213B8A #8A216F
split-complementary
#8A7021 #216F8A #3B218A
monochromatic
#272009 #594815 #8A7021 #BB982D #D5B450

Accessibility & contrast

On white

4.75
#8A7021 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A7021 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7021
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7021#FFFFFF#000000##FFFFFF
##8A70211.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F14
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#966660
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a7021;
/* rgb */ color: rgb(138, 112, 33);
/* oklch */ color: oklch(55.6% 0.100 89.9);
Tailwind
colors: {
  custom: {
    50: '#b09862',
    500: '#8a7021',
    950: '#000000',
  },
}
SCSS
$custom: #8a7021;
$custom-light: #b09862;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7021",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 33
  },
  "hsl": {
    "h": 45.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55574,
    "c": 0.09994,
    "h": 89.9
  },
  "luminance": 0.17101
}

Semantic roles & 50–950 ramp

primary
#8A7021
secondary
#4E69B9
accent
#6BE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110D05
muted
#807E7A

Preview Lab

Preview with #8A7021

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

Preview Lab → · Contrast checker → · Palette generator →

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