#8A8328#8A8328

#8A8328 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.9% C 0.110 H 104.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A8328
RGBrgb(138, 131, 40)
HSLhsl(56, 55%, 35%)
HSVhsv(56, 71%, 54%)
CMYKcmyk(0%, 5.1%, 71%, 45.9%)
CIE-LABlab(53.80, -8.62, 47.73)
CIE-LCHlch(53.80, 48.50, 100.24°)
OKLaboklab(59.88% -0.0283 0.1065)
OKLCHoklch(59.88% 0.11 104.9)
XYZxyz(18.9813, 21.7898, 5.2131)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8328 #282F8A
analogous
#8A5228 #8A8328 #608A28
triadic
#8A8328 #288A83 #83288A
tetradic
#8A8328 #288A52 #282F8A #8A2860
square
#8A8328 #288A52 #282F8A #8A2860
split-complementary
#8A8328 #28608A #52288A
monochromatic
#2B290C #5B561A #8A8328 #B9B036 #D0C85D

Accessibility & contrast

On white

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

On black

5.36
#8A8328 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8328
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8328#FFFFFF#000000##000000
##8A83281.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1A
Deuteranopia (green-blind)
#91822E
Tritanopia (blue-blind)
#947A71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8328;
/* rgb */ color: rgb(138, 131, 40);
/* oklch */ color: oklch(59.9% 0.110 104.9);
Tailwind
colors: {
  custom: {
    50: '#afa668',
    500: '#8a8328',
    950: '#000000',
  },
}
SCSS
$custom: #8a8328;
$custom-light: #afa668;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8328",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 55.714,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59879,
    "c": 0.11022,
    "h": 104.9
  },
  "luminance": 0.21789
}

Semantic roles & 50–950 ramp

primary
#8A8328
secondary
#595FB5
accent
#54DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8328

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

Preview Lab → · Contrast checker → · Palette generator →

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