#8A9738#8A9738

#8A9738 is a light, vivid yellow. Relative luminance 0.278; OKLCH L 64.7% C 0.120 H 116.5°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8A9738
RGBrgb(138, 151, 56)
HSLhsl(68, 46%, 41%)
HSVhsv(68, 63%, 59%)
CMYKcmyk(8.6%, 0%, 62.9%, 40.8%)
CIE-LABlab(59.73, -18.20, 47.01)
CIE-LCHlch(59.73, 50.42, 111.17°)
OKLaboklab(64.66% -0.0536 0.1076)
OKLCHoklch(64.66% 0.12 116.5)
XYZxyz(22.2621, 27.8223, 7.9381)
Luminance0.2782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9738 #453897
analogous
#977538 #8A9738 #5A9738
triadic
#8A9738 #388A97 #97388A
tetradic
#8A9738 #389775 #453897 #97385A
square
#8A9738 #389775 #453897 #97385A
split-complementary
#8A9738 #385A97 #753897
monochromatic
#383E17 #616A27 #8A9738 #AEBE4F #C3CE7B

Accessibility & contrast

On white

3.20
#8A9738 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#8A9738 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9738
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9738#FFFFFF#000000##000000
##8A97381.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18F2D
Deuteranopia (green-blind)
#A0913E
Tritanopia (blue-blind)
#928F83
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9738;
/* rgb */ color: rgb(138, 151, 56);
/* oklch */ color: oklch(64.7% 0.120 116.5);
Tailwind
colors: {
  custom: {
    50: '#aeb573',
    500: '#8a9738',
    950: '#000000',
  },
}
SCSS
$custom: #8a9738;
$custom-light: #aeb573;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9738",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 56
  },
  "hsl": {
    "h": 68.211,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.64655,
    "c": 0.12018,
    "h": 116.5
  },
  "luminance": 0.27822
}

Semantic roles & 50–950 ramp

primary
#8A9738
secondary
#7D73B7
accent
#52D664
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9738

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

Preview Lab → · Contrast checker → · Palette generator →

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