#8D8A21#8D8A21

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

Color values

HEX#8D8A21
RGBrgb(141, 138, 33)
HSLhsl(58, 62%, 34%)
HSVhsv(58, 77%, 55%)
CMYKcmyk(0%, 2.1%, 76.6%, 44.7%)
CIE-LABlab(56.04, -11.40, 52.63)
CIE-LCHlch(56.04, 53.85, 102.22°)
OKLaboklab(61.71% -0.037 0.1155)
OKLCHoklch(61.71% 0.121 107.8)
XYZxyz(20.3483, 23.9502, 4.9895)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A21 #21248D
analogous
#8D5421 #8D8A21 #5A8D21
triadic
#8D8A21 #218D8A #8A218D
tetradic
#8D8A21 #218D54 #21248D #8D215A
square
#8D8A21 #218D54 #21248D #8D215A
split-complementary
#8D8A21 #215A8D #54218D
monochromatic
#2A290A #5B5915 #8D8A21 #BFBB2D #D6D352

Accessibility & contrast

On white

3.63
#8D8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8A21#FFFFFF#000000##000000
##8D8A211.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d8a21;
/* rgb */ color: rgb(141, 138, 33);
/* oklch */ color: oklch(61.7% 0.121 107.8);
Tailwind
colors: {
  custom: {
    50: '#b2ab65',
    500: '#8d8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a21;
$custom-light: #b2ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a21",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 58.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61711,
    "c": 0.12125,
    "h": 107.8
  },
  "luminance": 0.23949
}

Semantic roles & 50–950 ramp

primary
#8D8A21
secondary
#5053BA
accent
#47E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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