#8A7821#8A7821

#8A7821 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.3% C 0.105 H 97.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A7821
RGBrgb(138, 120, 33)
HSLhsl(50, 61%, 34%)
HSVhsv(50, 76%, 54%)
CMYKcmyk(0%, 13%, 76.1%, 45.9%)
CIE-LABlab(50.63, -2.87, 47.43)
CIE-LCHlch(50.63, 47.51, 93.47°)
OKLaboklab(57.34% -0.0129 0.1045)
OKLCHoklch(57.34% 0.105 97)
XYZxyz(17.4731, 18.9469, 4.1753)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7821 #21338A
analogous
#8A4321 #8A7821 #678A21
triadic
#8A7821 #218A78 #78218A
tetradic
#8A7821 #218A43 #21338A #8A2167
square
#8A7821 #218A43 #21338A #8A2167
split-complementary
#8A7821 #21678A #43218A
monochromatic
#272209 #594D15 #8A7821 #BBA32D #D5BE50

Accessibility & contrast

On white

4.38
#8A7821 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A7821 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7821
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7821#FFFFFF#000000##000000
##8A78211.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857512
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a7821;
/* rgb */ color: rgb(138, 120, 33);
/* oklch */ color: oklch(57.3% 0.105 97.0);
Tailwind
colors: {
  custom: {
    50: '#b09e63',
    500: '#8a7821',
    950: '#000000',
  },
}
SCSS
$custom: #8a7821;
$custom-light: #b09e63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7821",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 33
  },
  "hsl": {
    "h": 49.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57341,
    "c": 0.10531,
    "h": 97
  },
  "luminance": 0.18946
}

Semantic roles & 50–950 ramp

primary
#8A7821
secondary
#4E60B9
accent
#5FE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7821

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

Preview Lab → · Contrast checker → · Palette generator →

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