#8A8223#8A8223

#8A8223 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.6% C 0.113 H 104.4°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A8223
RGBrgb(138, 130, 35)
HSLhsl(55, 60%, 34%)
HSVhsv(55, 75%, 54%)
CMYKcmyk(0%, 5.8%, 74.6%, 45.9%)
CIE-LABlab(53.48, -8.33, 49.39)
CIE-LCHlch(53.48, 50.09, 99.58°)
OKLaboklab(59.61% -0.0281 0.1091)
OKLCHoklch(59.61% 0.113 104.4)
XYZxyz(18.7680, 21.4906, 4.7493)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8223 #232B8A
analogous
#8A4F23 #8A8223 #5F8A23
triadic
#8A8223 #238A82 #82238A
tetradic
#8A8223 #238A4F #232B8A #8A235F
square
#8A8223 #238A4F #232B8A #8A235F
split-complementary
#8A8223 #235F8A #4F238A
monochromatic
#28260A #595417 #8A8223 #BBB02F #D4CA54

Accessibility & contrast

On white

3.96
#8A8223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A8223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8223
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8223#FFFFFF#000000##000000
##8A82231.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D12
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#957970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8223;
/* rgb */ color: rgb(138, 130, 35);
/* oklch */ color: oklch(59.6% 0.113 104.4);
Tailwind
colors: {
  custom: {
    50: '#afa665',
    500: '#8a8223',
    950: '#000000',
  },
}
SCSS
$custom: #8a8223;
$custom-light: #afa665;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8223",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 55.34,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59613,
    "c": 0.11265,
    "h": 104.4
  },
  "luminance": 0.2149
}

Semantic roles & 50–950 ramp

primary
#8A8223
secondary
#5159B7
accent
#51E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8223

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

Preview Lab → · Contrast checker → · Palette generator →

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