#8A8321#8A8321

#8A8321 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.115 H 105.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A8321
RGBrgb(138, 131, 33)
HSLhsl(56, 61%, 34%)
HSVhsv(56, 76%, 54%)
CMYKcmyk(0%, 5.1%, 76.1%, 45.9%)
CIE-LABlab(53.76, -8.98, 50.40)
CIE-LCHlch(53.76, 51.20, 100.10°)
OKLaboklab(59.83% -0.0301 0.1108)
OKLCHoklch(59.83% 0.115 105.2)
XYZxyz(18.8728, 21.7464, 4.6419)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8321 #21288A
analogous
#8A4E21 #8A8321 #5C8A21
triadic
#8A8321 #218A83 #83218A
tetradic
#8A8321 #218A4E #21288A #8A215C
square
#8A8321 #218A4E #21288A #8A215C
split-complementary
#8A8321 #215C8A #4E218A
monochromatic
#272509 #595415 #8A8321 #BBB22D #D5CC50

Accessibility & contrast

On white

3.93
#8A8321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A8321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8321
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8321#FFFFFF#000000##000000
##8A83211.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0D
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8321;
/* rgb */ color: rgb(138, 131, 33);
/* oklch */ color: oklch(59.8% 0.115 105.2);
Tailwind
colors: {
  custom: {
    50: '#afa664',
    500: '#8a8321',
    950: '#000000',
  },
}
SCSS
$custom: #8a8321;
$custom-light: #afa664;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8321",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 56,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59828,
    "c": 0.11485,
    "h": 105.2
  },
  "luminance": 0.21746
}

Semantic roles & 50–950 ramp

primary
#8A8321
secondary
#4E55B9
accent
#4EE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8321

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

Preview Lab → · Contrast checker → · Palette generator →

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