#8A7521#8A7521

#8A7521 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.7% C 0.103 H 94.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A7521
RGBrgb(138, 117, 33)
HSLhsl(48, 61%, 34%)
HSVhsv(48, 76%, 54%)
CMYKcmyk(0%, 15.2%, 76.1%, 45.9%)
CIE-LABlab(49.78, -1.18, 46.62)
CIE-LCHlch(49.78, 46.63, 91.45°)
OKLaboklab(56.67% -0.008 0.1028)
OKLCHoklch(56.67% 0.103 94.5)
XYZxyz(17.1179, 18.2366, 4.0569)
Luminance0.1824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7521 #21368A
analogous
#8A4021 #8A7521 #6A8A21
triadic
#8A7521 #218A75 #75218A
tetradic
#8A7521 #218A40 #21368A #8A216A
square
#8A7521 #218A40 #21368A #8A216A
split-complementary
#8A7521 #216A8A #40218A
monochromatic
#272109 #594B15 #8A7521 #BB9F2D #D5BB50

Accessibility & contrast

On white

4.52
#8A7521 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#8A7521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7521
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7521#FFFFFF#000000##000000
##8A75211.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#956B65
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a7521;
/* rgb */ color: rgb(138, 117, 33);
/* oklch */ color: oklch(56.7% 0.103 94.5);
Tailwind
colors: {
  custom: {
    50: '#b09c63',
    500: '#8a7521',
    950: '#000000',
  },
}
SCSS
$custom: #8a7521;
$custom-light: #b09c63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7521",
  "rgb": {
    "r": 138,
    "g": 117,
    "b": 33
  },
  "hsl": {
    "h": 48,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.10311,
    "h": 94.5
  },
  "luminance": 0.18236
}

Semantic roles & 50–950 ramp

primary
#8A7521
secondary
#4E64B9
accent
#64E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A7521

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

Preview Lab → · Contrast checker → · Palette generator →

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