#8A8B21#8A8B21

#8A8B21 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.80:1 contrast (WCAG AA passes).

Color values

HEX#8A8B21
RGBrgb(138, 139, 33)
HSLhsl(61, 62%, 34%)
HSVhsv(61, 76%, 55%)
CMYKcmyk(0.7%, 0%, 76.3%, 45.5%)
CIE-LABlab(56.07, -13.29, 52.57)
CIE-LCHlch(56.07, 54.22, 104.19°)
OKLaboklab(61.67% -0.0422 0.1154)
OKLCHoklch(61.67% 0.123 110.1)
XYZxyz(19.9891, 23.9789, 5.0140)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B21 #22218B
analogous
#8B5721 #8A8B21 #558B21
triadic
#8A8B21 #218A8B #8B218A
tetradic
#8A8B21 #218B57 #22218B #8B2155
square
#8A8B21 #218B57 #22218B #8B2155
split-complementary
#8A8B21 #21558B #57218B
monochromatic
#28280A #595A15 #8A8B21 #BBBC2D #D4D651

Accessibility & contrast

On white

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

On black

5.80
#8A8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B21
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B21#FFFFFF#000000##000000
##8A8B211.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b21;
/* rgb */ color: rgb(138, 139, 33);
/* oklch */ color: oklch(61.7% 0.123 110.1);
Tailwind
colors: {
  custom: {
    50: '#afac65',
    500: '#8a8b21',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b21;
$custom-light: #afac65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b21",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 60.566,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.6167,
    "c": 0.1229,
    "h": 110.1
  },
  "luminance": 0.23978
}

Semantic roles & 50–950 ramp

primary
#8A8B21
secondary
#504FB9
accent
#43E545
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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