#8A8F21#8A8F21

#8A8F21 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.6% C 0.127 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A8F21
RGBrgb(138, 143, 33)
HSLhsl(63, 63%, 35%)
HSVhsv(63, 77%, 56%)
CMYKcmyk(3.5%, 0%, 76.9%, 43.9%)
CIE-LABlab(57.23, -15.41, 53.65)
CIE-LCHlch(57.23, 55.81, 106.02°)
OKLaboklab(62.6% -0.0481 0.1177)
OKLCHoklch(62.6% 0.127 112.2)
XYZxyz(20.5789, 25.1585, 5.2106)
Luminance0.2516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F21 #26218F
analogous
#8F5D21 #8A8F21 #538F21
triadic
#8A8F21 #218A8F #8F218A
tetradic
#8A8F21 #218F5D #26218F #8F2153
square
#8A8F21 #218F5D #26218F #8F2153
split-complementary
#8A8F21 #21538F #5D218F
monochromatic
#2A2C0A #5A5D16 #8A8F21 #BAC12C #D1D753

Accessibility & contrast

On white

3.48
#8A8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F21
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F21#FFFFFF#000000##000000
##8A8F211.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8806
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f21;
/* rgb */ color: rgb(138, 143, 33);
/* oklch */ color: oklch(62.6% 0.127 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf66',
    500: '#8a8f21',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f21;
$custom-light: #afaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f21",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 62.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62601,
    "c": 0.12716,
    "h": 112.2
  },
  "luminance": 0.25158
}

Semantic roles & 50–950 ramp

primary
#8A8F21
secondary
#5651BB
accent
#42E64A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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