#8D8A22#8D8A22

#8D8A22 is a mid, vivid yellow. Relative luminance 0.240; 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#8D8A22
RGBrgb(141, 138, 34)
HSLhsl(58, 61%, 34%)
HSVhsv(58, 76%, 55%)
CMYKcmyk(0%, 2.1%, 75.9%, 44.7%)
CIE-LABlab(56.04, -11.35, 52.29)
CIE-LCHlch(56.04, 53.51, 102.25°)
OKLaboklab(61.72% -0.0368 0.1149)
OKLCHoklch(61.72% 0.121 107.8)
XYZxyz(20.3625, 23.9559, 5.0644)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A22 #22258D
analogous
#8D5522 #8D8A22 #5B8D22
triadic
#8D8A22 #228D8A #8A228D
tetradic
#8D8A22 #228D55 #22258D #8D225B
square
#8D8A22 #228D55 #22258D #8D225B
split-complementary
#8D8A22 #225B8D #55228D
monochromatic
#2A290A #5C5A16 #8D8A22 #BEBA2E #D6D254

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8A22#FFFFFF#000000##000000
##8D8A221.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)
#96840C
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#988176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8a22;
/* rgb */ color: rgb(141, 138, 34);
/* oklch */ color: oklch(61.7% 0.121 107.8);
Tailwind
colors: {
  custom: {
    50: '#b2ab66',
    500: '#8d8a22',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a22;
$custom-light: #b2ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a22",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 58.318,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61717,
    "c": 0.12067,
    "h": 107.8
  },
  "luminance": 0.23955
}

Semantic roles & 50–950 ramp

primary
#8D8A22
secondary
#5154B9
accent
#48E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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