#8A9728#8A9728

#8A9728 is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.5% C 0.132 H 116.1°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A9728
RGBrgb(138, 151, 40)
HSLhsl(67, 58%, 37%)
HSVhsv(67, 74%, 59%)
CMYKcmyk(8.6%, 0%, 73.5%, 40.8%)
CIE-LABlab(59.61, -19.22, 53.43)
CIE-LCHlch(59.61, 56.78, 109.78°)
OKLaboklab(64.52% -0.058 0.1185)
OKLCHoklch(64.52% 0.132 116.1)
XYZxyz(21.9314, 27.6900, 6.1964)
Luminance0.2769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9728 #352897
analogous
#976C28 #8A9728 #539728
triadic
#8A9728 #288A97 #97288A
tetradic
#8A9728 #28976C #352897 #972853
square
#8A9728 #28976C #352897 #972853
split-complementary
#8A9728 #285397 #6C2897
monochromatic
#32360E #5E671B #8A9728 #B6C735 #C8D664

Accessibility & contrast

On white

3.21
#8A9728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#8A9728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9728
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9728#FFFFFF#000000##000000
##8A97281.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F13
Deuteranopia (green-blind)
#A19031
Tritanopia (blue-blind)
#938E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9728;
/* rgb */ color: rgb(138, 151, 40);
/* oklch */ color: oklch(64.5% 0.132 116.1);
Tailwind
colors: {
  custom: {
    50: '#afb56a',
    500: '#8a9728',
    950: '#000000',
  },
}
SCSS
$custom: #8a9728;
$custom-light: #afb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9728",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 67.027,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6452,
    "c": 0.13196,
    "h": 116.1
  },
  "luminance": 0.2769
}

Semantic roles & 50–950 ramp

primary
#8A9728
secondary
#6A5FBC
accent
#46E159
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9728

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

Preview Lab → · Contrast checker → · Palette generator →

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