#8A8E20#8A8E20

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

Color values

HEX#8A8E20
RGBrgb(138, 142, 32)
HSLhsl(62, 63%, 34%)
HSVhsv(62, 77%, 56%)
CMYKcmyk(2.8%, 0%, 77.5%, 44.3%)
CIE-LABlab(56.93, -14.93, 53.71)
CIE-LCHlch(56.93, 55.74, 105.53°)
OKLaboklab(62.36% -0.0468 0.1177)
OKLCHoklch(62.36% 0.127 111.7)
XYZxyz(20.4156, 24.8541, 5.0881)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E20 #24208E
analogous
#8E5B20 #8A8E20 #538E20
triadic
#8A8E20 #208A8E #8E208A
tetradic
#8A8E20 #208E5B #24208E #8E2053
square
#8A8E20 #208E5B #24208E #8E2053
split-complementary
#8A8E20 #20538E #5B208E
monochromatic
#292A09 #595C15 #8A8E20 #BBC02B #D3D851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8E20#FFFFFF#000000##000000
##8A8E201.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)
#998704
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e20;
/* rgb */ color: rgb(138, 142, 32);
/* oklch */ color: oklch(62.4% 0.127 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae65',
    500: '#8a8e20',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e20;
$custom-light: #afae65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e20",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 62.182,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62362,
    "c": 0.12663,
    "h": 111.7
  },
  "luminance": 0.24854
}

Semantic roles & 50–950 ramp

primary
#8A8E20
secondary
#534FBB
accent
#42E648
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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