#8A8021#8A8021

#8A8021 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.1% C 0.112 H 103.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A8021
RGBrgb(138, 128, 33)
HSLhsl(54, 61%, 34%)
HSVhsv(54, 76%, 54%)
CMYKcmyk(0%, 7.2%, 76.1%, 45.9%)
CIE-LABlab(52.90, -7.33, 49.59)
CIE-LCHlch(52.90, 50.13, 98.41°)
OKLaboklab(59.14% -0.0255 0.1091)
OKLCHoklch(59.14% 0.112 103.1)
XYZxyz(18.4757, 20.9522, 4.5095)
Luminance0.2095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8021 #212B8A
analogous
#8A4B21 #8A8021 #5F8A21
triadic
#8A8021 #218A80 #80218A
tetradic
#8A8021 #218A4B #212B8A #8A215F
square
#8A8021 #218A4B #212B8A #8A215F
split-complementary
#8A8021 #215F8A #4B218A
monochromatic
#272409 #595215 #8A8021 #BBAE2D #D5C950

Accessibility & contrast

On white

4.05
#8A8021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A8021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8021
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8021#FFFFFF#000000##000000
##8A80211.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0F
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a8021;
/* rgb */ color: rgb(138, 128, 33);
/* oklch */ color: oklch(59.1% 0.112 103.1);
Tailwind
colors: {
  custom: {
    50: '#afa464',
    500: '#8a8021',
    950: '#000000',
  },
}
SCSS
$custom: #8a8021;
$custom-light: #afa464;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8021",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 54.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59144,
    "c": 0.11204,
    "h": 103.1
  },
  "luminance": 0.20951
}

Semantic roles & 50–950 ramp

primary
#8A8021
secondary
#4E58B9
accent
#53E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8021

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

Preview Lab → · Contrast checker → · Palette generator →

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