#8A8323#8A8323

#8A8323 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.8% C 0.114 H 105.1°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A8323
RGBrgb(138, 131, 35)
HSLhsl(56, 60%, 34%)
HSVhsv(56, 75%, 54%)
CMYKcmyk(0%, 5.1%, 74.6%, 45.9%)
CIE-LABlab(53.77, -8.88, 49.67)
CIE-LCHlch(53.77, 50.46, 100.14°)
OKLaboklab(59.84% -0.0296 0.1097)
OKLCHoklch(59.84% 0.114 105.1)
XYZxyz(18.9017, 21.7579, 4.7938)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8323 #232A8A
analogous
#8A5023 #8A8323 #5E8A23
triadic
#8A8323 #238A83 #83238A
tetradic
#8A8323 #238A50 #232A8A #8A235E
square
#8A8323 #238A50 #232A8A #8A235E
split-complementary
#8A8323 #235E8A #50238A
monochromatic
#28260A #595517 #8A8323 #BBB12F #D4CB54

Accessibility & contrast

On white

3.92
#8A8323 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A8323 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8323
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8323#FFFFFF#000000##000000
##8A83231.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E11
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8323;
/* rgb */ color: rgb(138, 131, 35);
/* oklch */ color: oklch(59.8% 0.114 105.1);
Tailwind
colors: {
  custom: {
    50: '#afa665',
    500: '#8a8323',
    950: '#000000',
  },
}
SCSS
$custom: #8a8323;
$custom-light: #afa665;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8323",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 35
  },
  "hsl": {
    "h": 55.922,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59842,
    "c": 0.1136,
    "h": 105.1
  },
  "luminance": 0.21757
}

Semantic roles & 50–950 ramp

primary
#8A8323
secondary
#5158B7
accent
#50E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8323

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

Preview Lab → · Contrast checker → · Palette generator →

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