#8A8823#8A8823

#8A8823 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.119 H 108.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A8823
RGBrgb(138, 136, 35)
HSLhsl(59, 60%, 34%)
HSVhsv(59, 75%, 54%)
CMYKcmyk(0%, 1.4%, 74.6%, 45.9%)
CIE-LABlab(55.21, -11.59, 51.05)
CIE-LCHlch(55.21, 52.35, 102.79°)
OKLaboklab(60.99% -0.0372 0.1126)
OKLCHoklch(60.99% 0.119 108.3)
XYZxyz(19.5895, 23.1336, 5.0231)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8823 #23258A
analogous
#8A5523 #8A8823 #598A23
triadic
#8A8823 #238A88 #88238A
tetradic
#8A8823 #238A55 #23258A #8A2359
square
#8A8823 #238A55 #23258A #8A2359
split-complementary
#8A8823 #23598A #55238A
monochromatic
#28280A #595817 #8A8823 #BBB82F #D4D154

Accessibility & contrast

On white

3.73
#8A8823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8A8823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8823
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8823#FFFFFF#000000##000000
##8A88231.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820F
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#947F75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8823;
/* rgb */ color: rgb(138, 136, 35);
/* oklch */ color: oklch(61.0% 0.119 108.3);
Tailwind
colors: {
  custom: {
    50: '#afaa66',
    500: '#8a8823',
    950: '#000000',
  },
}
SCSS
$custom: #8a8823;
$custom-light: #afaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8823",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 35
  },
  "hsl": {
    "h": 58.835,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.6099,
    "c": 0.11858,
    "h": 108.3
  },
  "luminance": 0.23133
}

Semantic roles & 50–950 ramp

primary
#8A8823
secondary
#5153B7
accent
#48E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8823

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

Preview Lab → · Contrast checker → · Palette generator →

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