#8A8828#8A8828

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

Color values

HEX#8A8828
RGBrgb(138, 136, 40)
HSLhsl(59, 55%, 35%)
HSVhsv(59, 71%, 54%)
CMYKcmyk(0%, 1.4%, 71%, 45.9%)
CIE-LABlab(55.24, -11.33, 49.16)
CIE-LCHlch(55.24, 50.45, 102.98°)
OKLaboklab(61.03% -0.036 0.1095)
OKLCHoklch(61.03% 0.115 108.2)
XYZxyz(19.6691, 23.1654, 5.4423)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8828 #282A8A
analogous
#8A5728 #8A8828 #5B8A28
triadic
#8A8828 #288A88 #88288A
tetradic
#8A8828 #288A57 #282A8A #8A285B
square
#8A8828 #288A57 #282A8A #8A285B
split-complementary
#8A8828 #285B8A #57288A
monochromatic
#2B2A0C #5B591A #8A8828 #B9B736 #D0CE5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8828#FFFFFF#000000##000000
##8A88281.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)
#938219
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#947F75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8828;
/* rgb */ color: rgb(138, 136, 40);
/* oklch */ color: oklch(61.0% 0.115 108.2);
Tailwind
colors: {
  custom: {
    50: '#afaa68',
    500: '#8a8828',
    950: '#000000',
  },
}
SCSS
$custom: #8a8828;
$custom-light: #afaa68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8828",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 58.776,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61026,
    "c": 0.11529,
    "h": 108.2
  },
  "luminance": 0.23165
}

Semantic roles & 50–950 ramp

primary
#8A8828
secondary
#595BB5
accent
#4CDE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8828

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

Preview Lab → · Contrast checker → · Palette generator →

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