#8A8E21#8A8E21

#8A8E21 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.4% C 0.126 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E21
RGBrgb(138, 142, 33)
HSLhsl(62, 62%, 34%)
HSVhsv(62, 77%, 56%)
CMYKcmyk(2.8%, 0%, 76.8%, 44.3%)
CIE-LABlab(56.94, -14.88, 53.38)
CIE-LCHlch(56.94, 55.41, 105.58°)
OKLaboklab(62.37% -0.0466 0.1172)
OKLCHoklch(62.37% 0.126 111.7)
XYZxyz(20.4294, 24.8596, 5.1608)
Luminance0.2486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E21 #25218E
analogous
#8E5C21 #8A8E21 #548E21
triadic
#8A8E21 #218A8E #8E218A
tetradic
#8A8E21 #218E5C #25218E #8E2154
square
#8A8E21 #218E5C #25218E #8E2154
split-complementary
#8A8E21 #21548E #5C218E
monochromatic
#292B0A #5A5C15 #8A8E21 #BAC02D #D2D752

Accessibility & contrast

On white

3.52
#8A8E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A8E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E21
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E21#FFFFFF#000000##000000
##8A8E211.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e21;
/* rgb */ color: rgb(138, 142, 33);
/* oklch */ color: oklch(62.4% 0.126 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#8a8e21',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e21;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e21",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 62.202,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62368,
    "c": 0.12608,
    "h": 111.7
  },
  "luminance": 0.24859
}

Semantic roles & 50–950 ramp

primary
#8A8E21
secondary
#5450BA
accent
#42E548
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E21

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

Preview Lab → · Contrast checker → · Palette generator →

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