#8A8F20#8A8F20

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

Color values

HEX#8A8F20
RGBrgb(138, 143, 32)
HSLhsl(63, 63%, 34%)
HSVhsv(63, 78%, 56%)
CMYKcmyk(3.5%, 0%, 77.6%, 43.9%)
CIE-LABlab(57.22, -15.45, 53.98)
CIE-LCHlch(57.22, 56.14, 105.97°)
OKLaboklab(62.6% -0.0483 0.1182)
OKLCHoklch(62.6% 0.128 112.2)
XYZxyz(20.5651, 25.1530, 5.1379)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F20 #25208F
analogous
#8F5D20 #8A8F20 #538F20
triadic
#8A8F20 #208A8F #8F208A
tetradic
#8A8F20 #208F5D #25208F #8F2053
square
#8A8F20 #208F5D #25208F #8F2053
split-complementary
#8A8F20 #20538F #5D208F
monochromatic
#292B0A #5A5D15 #8A8F20 #BAC12B #D2D851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8F20#FFFFFF#000000##000000
##8A8F201.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)
#9A8803
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f20;
/* rgb */ color: rgb(138, 143, 32);
/* oklch */ color: oklch(62.6% 0.128 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf65',
    500: '#8a8f20',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f20;
$custom-light: #afaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f20",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 62.703,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62595,
    "c": 0.12771,
    "h": 112.2
  },
  "luminance": 0.25152
}

Semantic roles & 50–950 ramp

primary
#8A8F20
secondary
#544FBB
accent
#41E649
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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