#8A7B21#8A7B21

#8A7B21 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.108 H 99.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B21
RGBrgb(138, 123, 33)
HSLhsl(51, 61%, 34%)
HSVhsv(51, 76%, 54%)
CMYKcmyk(0%, 10.9%, 76.1%, 45.9%)
CIE-LABlab(51.47, -4.56, 48.24)
CIE-LCHlch(51.47, 48.45, 95.40°)
OKLaboklab(58.01% -0.0176 0.1062)
OKLCHoklch(58.01% 0.108 99.4)
XYZxyz(17.8396, 19.6799, 4.2975)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B21 #21308A
analogous
#8A4621 #8A7B21 #648A21
triadic
#8A7B21 #218A7B #7B218A
tetradic
#8A7B21 #218A46 #21308A #8A2164
square
#8A7B21 #218A46 #21308A #8A2164
split-complementary
#8A7B21 #21648A #46218A
monochromatic
#272309 #594F15 #8A7B21 #BBA72D #D5C250

Accessibility & contrast

On white

4.25
#8A7B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B21
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B21#FFFFFF#000000##000000
##8A7B211.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877811
Deuteranopia (green-blind)
#8C7D27
Tritanopia (blue-blind)
#95716A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b21;
/* rgb */ color: rgb(138, 123, 33);
/* oklch */ color: oklch(58.0% 0.108 99.4);
Tailwind
colors: {
  custom: {
    50: '#b0a063',
    500: '#8a7b21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b21;
$custom-light: #b0a063;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b21",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 51.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58013,
    "c": 0.10769,
    "h": 99.4
  },
  "luminance": 0.19679
}

Semantic roles & 50–950 ramp

primary
#8A7B21
secondary
#4E5DB9
accent
#5AE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B21

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

Preview Lab → · Contrast checker → · Palette generator →

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