#8A8D21#8A8D21

#8A8D21 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.125 H 111.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A8D21
RGBrgb(138, 141, 33)
HSLhsl(62, 62%, 34%)
HSVhsv(62, 77%, 55%)
CMYKcmyk(2.1%, 0%, 76.6%, 44.7%)
CIE-LABlab(56.65, -14.35, 53.11)
CIE-LCHlch(56.65, 55.01, 105.12°)
OKLaboklab(62.14% -0.0451 0.1166)
OKLCHoklch(62.14% 0.125 111.2)
XYZxyz(20.2813, 24.5634, 5.1114)
Luminance0.2456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D21 #24218D
analogous
#8D5A21 #8A8D21 #548D21
triadic
#8A8D21 #218A8D #8D218A
tetradic
#8A8D21 #218D5A #24218D #8D2154
square
#8A8D21 #218D5A #24218D #8D2154
split-complementary
#8A8D21 #21548D #5A218D
monochromatic
#292A0A #595B15 #8A8D21 #BBBF2D #D3D652

Accessibility & contrast

On white

3.55
#8A8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D21
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D21#FFFFFF#000000##000000
##8A8D211.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988607
Deuteranopia (green-blind)
#99892A
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d21;
/* rgb */ color: rgb(138, 141, 33);
/* oklch */ color: oklch(62.1% 0.125 111.2);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#8a8d21',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d21;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d21",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 61.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62135,
    "c": 0.125,
    "h": 111.2
  },
  "luminance": 0.24563
}

Semantic roles & 50–950 ramp

primary
#8A8D21
secondary
#5350BA
accent
#43E547
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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