#8A8B20#8A8B20

#8A8B20 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.123 H 110.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A8B20
RGBrgb(138, 139, 32)
HSLhsl(61, 63%, 34%)
HSVhsv(61, 77%, 55%)
CMYKcmyk(0.7%, 0%, 77%, 45.5%)
CIE-LABlab(56.06, -13.34, 52.90)
CIE-LCHlch(56.06, 54.56, 104.15°)
OKLaboklab(61.66% -0.0424 0.116)
OKLCHoklch(61.66% 0.123 110.1)
XYZxyz(19.9753, 23.9734, 4.9413)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B20 #21208B
analogous
#8B5620 #8A8B20 #548B20
triadic
#8A8B20 #208A8B #8B208A
tetradic
#8A8B20 #208B56 #21208B #8B2054
square
#8A8B20 #208B56 #21208B #8B2054
split-complementary
#8A8B20 #20548B #56208B
monochromatic
#272809 #595915 #8A8B20 #BBBD2B #D5D64F

Accessibility & contrast

On white

3.62
#8A8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8A8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B20
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B20#FFFFFF#000000##000000
##8A8B201.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978506
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b20;
/* rgb */ color: rgb(138, 139, 32);
/* oklch */ color: oklch(61.7% 0.123 110.1);
Tailwind
colors: {
  custom: {
    50: '#afac65',
    500: '#8a8b20',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b20;
$custom-light: #afac65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b20",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 60.561,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61664,
    "c": 0.12346,
    "h": 110.1
  },
  "luminance": 0.23973
}

Semantic roles & 50–950 ramp

primary
#8A8B20
secondary
#4E4DBA
accent
#42E644
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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