#8A8428#8A8428

#8A8428 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.1% C 0.111 H 105.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A8428
RGBrgb(138, 132, 40)
HSLhsl(56, 55%, 35%)
HSVhsv(56, 71%, 54%)
CMYKcmyk(0%, 4.3%, 71%, 45.9%)
CIE-LABlab(54.09, -9.16, 48.01)
CIE-LCHlch(54.09, 48.88, 100.81°)
OKLaboklab(60.11% -0.0299 0.1071)
OKLCHoklch(60.11% 0.111 105.6)
XYZxyz(19.1162, 22.0597, 5.2581)
Luminance0.2206 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8428 #282E8A
analogous
#8A5328 #8A8428 #5F8A28
triadic
#8A8428 #288A84 #84288A
tetradic
#8A8428 #288A53 #282E8A #8A285F
square
#8A8428 #288A53 #282E8A #8A285F
split-complementary
#8A8428 #285F8A #53288A
monochromatic
#2B290C #5B571A #8A8428 #B9B136 #D0C95D

Accessibility & contrast

On white

3.88
#8A8428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A8428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8428
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8428#FFFFFF#000000##000000
##8A84281.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1A
Deuteranopia (green-blind)
#92832E
Tritanopia (blue-blind)
#947B72
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8428;
/* rgb */ color: rgb(138, 132, 40);
/* oklch */ color: oklch(60.1% 0.111 105.6);
Tailwind
colors: {
  custom: {
    50: '#afa768',
    500: '#8a8428',
    950: '#000000',
  },
}
SCSS
$custom: #8a8428;
$custom-light: #afa768;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8428",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 56.327,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60108,
    "c": 0.11121,
    "h": 105.6
  },
  "luminance": 0.22059
}

Semantic roles & 50–950 ramp

primary
#8A8428
secondary
#595EB5
accent
#53DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8428

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

Preview Lab → · Contrast checker → · Palette generator →

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