#8A9C28#8A9C28

#8A9C28 is a light, vivid yellow. Relative luminance 0.293; OKLCH L 65.7% C 0.138 H 118.2°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A9C28
RGBrgb(138, 156, 40)
HSLhsl(69, 59%, 38%)
HSVhsv(69, 74%, 61%)
CMYKcmyk(11.5%, 0%, 74.4%, 38.8%)
CIE-LABlab(61.07, -21.76, 54.84)
CIE-LCHlch(61.07, 59.00, 111.64°)
OKLaboklab(65.7% -0.065 0.1215)
OKLCHoklch(65.7% 0.138 118.2)
XYZxyz(22.7532, 29.3336, 6.4704)
Luminance0.2933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9C28 #3A289C
analogous
#9C7428 #8A9C28 #509C28
triadic
#8A9C28 #288A9C #9C288A
tetradic
#8A9C28 #289C74 #3A289C #9C2850
square
#8A9C28 #289C74 #3A289C #9C2850
split-complementary
#8A9C28 #28509C #74289C
monochromatic
#343B0F #5F6B1C #8A9C28 #B4CB36 #C6D867

Accessibility & contrast

On white

3.06
#8A9C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#8A9C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9C28
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9C28#FFFFFF#000000##000000
##8A9C281.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79310
Deuteranopia (green-blind)
#A59432
Tritanopia (blue-blind)
#939386
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9c28;
/* rgb */ color: rgb(138, 156, 40);
/* oklch */ color: oklch(65.7% 0.138 118.2);
Tailwind
colors: {
  custom: {
    50: '#afb96b',
    500: '#8a9c28',
    950: '#000000',
  },
}
SCSS
$custom: #8a9c28;
$custom-light: #afb96b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9c28",
  "rgb": {
    "r": 138,
    "g": 156,
    "b": 40
  },
  "hsl": {
    "h": 69.31,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.657,
    "c": 0.13782,
    "h": 118.2
  },
  "luminance": 0.29333
}

Semantic roles & 50–950 ramp

primary
#8A9C28
secondary
#7062BE
accent
#45E25E
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9C28

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

Preview Lab → · Contrast checker → · Palette generator →

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