#8A9428#8A9428

#8A9428 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 63.8% C 0.129 H 114.7°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A9428
RGBrgb(138, 148, 40)
HSLhsl(66, 57%, 37%)
HSVhsv(66, 73%, 58%)
CMYKcmyk(6.8%, 0%, 73%, 42%)
CIE-LABlab(58.73, -17.67, 52.58)
CIE-LCHlch(58.73, 55.47, 108.58°)
OKLaboklab(63.82% -0.0537 0.1167)
OKLCHoklch(63.82% 0.129 114.7)
XYZxyz(21.4547, 26.7367, 6.0376)
Luminance0.2674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9428 #322894
analogous
#946828 #8A9428 #549428
triadic
#8A9428 #288A94 #94288A
tetradic
#8A9428 #289468 #322894 #942854
square
#8A9428 #289468 #322894 #942854
split-complementary
#8A9428 #285494 #682894
monochromatic
#30340E #5D641B #8A9428 #B7C435 #CAD562

Accessibility & contrast

On white

3.31
#8A9428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#8A9428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9428
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9428#FFFFFF#000000##000000
##8A94281.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C14
Deuteranopia (green-blind)
#9E8E31
Tritanopia (blue-blind)
#938B7F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a9428;
/* rgb */ color: rgb(138, 148, 40);
/* oklch */ color: oklch(63.8% 0.129 114.7);
Tailwind
colors: {
  custom: {
    50: '#afb36a',
    500: '#8a9428',
    950: '#000000',
  },
}
SCSS
$custom: #8a9428;
$custom-light: #afb36a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9428",
  "rgb": {
    "r": 138,
    "g": 148,
    "b": 40
  },
  "hsl": {
    "h": 65.556,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63816,
    "c": 0.12851,
    "h": 114.7
  },
  "luminance": 0.26736
}

Semantic roles & 50–950 ramp

primary
#8A9428
secondary
#665EBA
accent
#47E155
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9428

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

Preview Lab → · Contrast checker → · Palette generator →

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