#8A9828#8A9828

#8A9828 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.8% C 0.133 H 116.5°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8A9828
RGBrgb(138, 152, 40)
HSLhsl(68, 58%, 38%)
HSVhsv(68, 74%, 60%)
CMYKcmyk(9.2%, 0%, 73.7%, 40.4%)
CIE-LABlab(59.90, -19.73, 53.71)
CIE-LCHlch(59.90, 57.22, 110.17°)
OKLaboklab(64.76% -0.0594 0.1191)
OKLCHoklch(64.76% 0.133 116.5)
XYZxyz(22.0930, 28.0132, 6.2503)
Luminance0.2801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9828 #362898
analogous
#986E28 #8A9828 #529828
triadic
#8A9828 #288A98 #98288A
tetradic
#8A9828 #28986E #362898 #982852
square
#8A9828 #28986E #362898 #982852
split-complementary
#8A9828 #285298 #6E2898
monochromatic
#32370F #5E681B #8A9828 #B6C835 #C8D664

Accessibility & contrast

On white

3.18
#8A9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#8A9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9828
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9828#FFFFFF#000000##000000
##8A98281.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39012
Deuteranopia (green-blind)
#A19131
Tritanopia (blue-blind)
#938F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9828;
/* rgb */ color: rgb(138, 152, 40);
/* oklch */ color: oklch(64.8% 0.133 116.5);
Tailwind
colors: {
  custom: {
    50: '#afb66a',
    500: '#8a9828',
    950: '#000000',
  },
}
SCSS
$custom: #8a9828;
$custom-light: #afb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9828",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 67.5,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64756,
    "c": 0.13313,
    "h": 116.5
  },
  "luminance": 0.28013
}

Semantic roles & 50–950 ramp

primary
#8A9828
secondary
#6B60BC
accent
#46E25A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9828

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

Preview Lab → · Contrast checker → · Palette generator →

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