#8A8128#8A8128

#8A8128 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.4% C 0.108 H 103.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A8128
RGBrgb(138, 129, 40)
HSLhsl(54, 55%, 35%)
HSVhsv(54, 71%, 54%)
CMYKcmyk(0%, 6.5%, 71%, 45.9%)
CIE-LABlab(53.23, -7.52, 47.15)
CIE-LCHlch(53.23, 47.75, 99.06°)
OKLaboklab(59.42% -0.0253 0.1053)
OKLCHoklch(59.42% 0.108 103.5)
XYZxyz(18.7153, 21.2577, 5.1244)
Luminance0.2126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8128 #28318A
analogous
#8A5028 #8A8128 #628A28
triadic
#8A8128 #288A81 #81288A
tetradic
#8A8128 #288A50 #28318A #8A2862
square
#8A8128 #288A50 #28318A #8A2862
split-complementary
#8A8128 #28628A #50288A
monochromatic
#2B280C #5B551A #8A8128 #B9AD36 #D0C55D

Accessibility & contrast

On white

4.00
#8A8128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A8128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8128
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8128#FFFFFF#000000##000000
##8A81281.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1B
Deuteranopia (green-blind)
#90812E
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8128;
/* rgb */ color: rgb(138, 129, 40);
/* oklch */ color: oklch(59.4% 0.108 103.5);
Tailwind
colors: {
  custom: {
    50: '#afa568',
    500: '#8a8128',
    950: '#000000',
  },
}
SCSS
$custom: #8a8128;
$custom-light: #afa568;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8128",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 54.49,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59424,
    "c": 0.10829,
    "h": 103.5
  },
  "luminance": 0.21257
}

Semantic roles & 50–950 ramp

primary
#8A8128
secondary
#5961B5
accent
#57DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8128

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

Preview Lab → · Contrast checker → · Palette generator →

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