#8A8728#8A8728

#8A8728 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.114 H 107.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A8728
RGBrgb(138, 135, 40)
HSLhsl(58, 55%, 35%)
HSVhsv(58, 71%, 54%)
CMYKcmyk(0%, 2.2%, 71%, 45.9%)
CIE-LABlab(54.95, -10.79, 48.87)
CIE-LCHlch(54.95, 50.05, 102.45°)
OKLaboklab(60.8% -0.0345 0.1089)
OKLCHoklch(60.8% 0.114 107.6)
XYZxyz(19.5289, 22.8851, 5.3956)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8728 #282B8A
analogous
#8A5628 #8A8728 #5C8A28
triadic
#8A8728 #288A87 #87288A
tetradic
#8A8728 #288A56 #282B8A #8A285C
square
#8A8728 #288A56 #282B8A #8A285C
split-complementary
#8A8728 #285C8A #56288A
monochromatic
#2B2A0C #5B591A #8A8728 #B9B536 #D0CC5D

Accessibility & contrast

On white

3.77
#8A8728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8A8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8728
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8728#FFFFFF#000000##000000
##8A87281.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928219
Deuteranopia (green-blind)
#94852F
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8728;
/* rgb */ color: rgb(138, 135, 40);
/* oklch */ color: oklch(60.8% 0.114 107.6);
Tailwind
colors: {
  custom: {
    50: '#afa968',
    500: '#8a8728',
    950: '#000000',
  },
}
SCSS
$custom: #8a8728;
$custom-light: #afa968;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8728",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 58.163,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60796,
    "c": 0.11426,
    "h": 107.6
  },
  "luminance": 0.22884
}

Semantic roles & 50–950 ramp

primary
#8A8728
secondary
#595BB5
accent
#4EDE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8728

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

Preview Lab → · Contrast checker → · Palette generator →

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