#8A8521#8A8521

#8A8521 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.117 H 106.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A8521
RGBrgb(138, 133, 33)
HSLhsl(57, 61%, 34%)
HSVhsv(57, 76%, 54%)
CMYKcmyk(0%, 3.6%, 76.1%, 45.9%)
CIE-LABlab(54.33, -10.06, 50.94)
CIE-LCHlch(54.33, 51.93, 101.18°)
OKLaboklab(60.29% -0.0332 0.112)
OKLCHoklch(60.29% 0.117 106.5)
XYZxyz(19.1441, 22.2888, 4.7323)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8521 #21268A
analogous
#8A5021 #8A8521 #5A8A21
triadic
#8A8521 #218A85 #85218A
tetradic
#8A8521 #218A50 #21268A #8A215A
square
#8A8521 #218A50 #21268A #8A215A
split-complementary
#8A8521 #215A8A #50218A
monochromatic
#272609 #595515 #8A8521 #BBB52D #D5CF50

Accessibility & contrast

On white

3.85
#8A8521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8521
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8521#FFFFFF#000000##000000
##8A85211.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#957C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8521;
/* rgb */ color: rgb(138, 133, 33);
/* oklch */ color: oklch(60.3% 0.117 106.5);
Tailwind
colors: {
  custom: {
    50: '#afa865',
    500: '#8a8521',
    950: '#000000',
  },
}
SCSS
$custom: #8a8521;
$custom-light: #afa865;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8521",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 57.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.11679,
    "h": 106.5
  },
  "luminance": 0.22288
}

Semantic roles & 50–950 ramp

primary
#8A8521
secondary
#4E53B9
accent
#4BE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8521

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

Preview Lab → · Contrast checker → · Palette generator →

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