#8A8028#8A8028

#8A8028 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.107 H 102.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A8028
RGBrgb(138, 128, 40)
HSLhsl(54, 55%, 35%)
HSVhsv(54, 71%, 54%)
CMYKcmyk(0%, 7.2%, 71%, 45.9%)
CIE-LABlab(52.94, -6.97, 46.87)
CIE-LCHlch(52.94, 47.38, 98.46°)
OKLaboklab(59.2% -0.0237 0.1047)
OKLCHoklch(59.2% 0.107 102.7)
XYZxyz(18.5842, 20.9956, 5.0807)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8028 #28328A
analogous
#8A4F28 #8A8028 #638A28
triadic
#8A8028 #288A80 #80288A
tetradic
#8A8028 #288A4F #28328A #8A2863
square
#8A8028 #288A4F #28328A #8A2863
split-complementary
#8A8028 #28638A #4F288A
monochromatic
#2B280C #5B541A #8A8028 #B9AC36 #D0C45D

Accessibility & contrast

On white

4.04
#8A8028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A8028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8028
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8028#FFFFFF#000000##000000
##8A80281.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1B
Deuteranopia (green-blind)
#8F802E
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a8028;
/* rgb */ color: rgb(138, 128, 40);
/* oklch */ color: oklch(59.2% 0.107 102.7);
Tailwind
colors: {
  custom: {
    50: '#afa468',
    500: '#8a8028',
    950: '#000000',
  },
}
SCSS
$custom: #8a8028;
$custom-light: #afa468;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8028",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 53.878,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59197,
    "c": 0.10735,
    "h": 102.7
  },
  "luminance": 0.20995
}

Semantic roles & 50–950 ramp

primary
#8A8028
secondary
#5962B5
accent
#59DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8028

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

Preview Lab → · Contrast checker → · Palette generator →

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