#8A8A21#8A8A21

#8A8A21 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.122 H 109.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A8A21
RGBrgb(138, 138, 33)
HSLhsl(60, 61%, 34%)
HSVhsv(60, 76%, 54%)
CMYKcmyk(0%, 0%, 76.1%, 45.9%)
CIE-LABlab(55.78, -12.76, 52.30)
CIE-LCHlch(55.78, 53.83, 103.71°)
OKLaboklab(61.44% -0.0407 0.1149)
OKLCHoklch(61.44% 0.122 109.5)
XYZxyz(19.8450, 23.6906, 4.9659)
Luminance0.2369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A21 #21218A
analogous
#8A5521 #8A8A21 #558A21
triadic
#8A8A21 #218A8A #8A218A
tetradic
#8A8A21 #218A55 #21218A #8A2155
square
#8A8A21 #218A55 #21218A #8A2155
split-complementary
#8A8A21 #21558A #55218A
monochromatic
#272709 #595915 #8A8A21 #BBBB2D #D5D550

Accessibility & contrast

On white

3.66
#8A8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8A8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A21
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A21#FFFFFF#000000##000000
##8A8A211.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968409
Deuteranopia (green-blind)
#978729
Tritanopia (blue-blind)
#948176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a21;
/* rgb */ color: rgb(138, 138, 33);
/* oklch */ color: oklch(61.4% 0.122 109.5);
Tailwind
colors: {
  custom: {
    50: '#afab65',
    500: '#8a8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a21;
$custom-light: #afab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a21",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 60,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61439,
    "c": 0.12184,
    "h": 109.5
  },
  "luminance": 0.2369
}

Semantic roles & 50–950 ramp

primary
#8A8A21
secondary
#4E4EB9
accent
#43E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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