#8A9837#8A9837

#8A9837 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.9% C 0.122 H 116.9°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8A9837
RGBrgb(138, 152, 55)
HSLhsl(69, 47%, 41%)
HSVhsv(69, 64%, 60%)
CMYKcmyk(9.2%, 0%, 63.8%, 40.4%)
CIE-LABlab(60.01, -18.79, 47.76)
CIE-LCHlch(60.01, 51.33, 111.48°)
OKLaboklab(64.88% -0.0553 0.109)
OKLCHoklch(64.88% 0.122 116.9)
XYZxyz(22.3995, 28.1358, 7.8644)
Luminance0.2814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9837 #453798
analogous
#987537 #8A9837 #599837
triadic
#8A9837 #378A98 #98378A
tetradic
#8A9837 #379875 #453798 #983759
square
#8A9837 #379875 #453798 #983759
split-complementary
#8A9837 #375998 #753798
monochromatic
#383E16 #616B27 #8A9837 #AEBF4D #C3CF7A

Accessibility & contrast

On white

3.17
#8A9837 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#8A9837 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9837
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9837#FFFFFF#000000##000000
##8A98371.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2902B
Deuteranopia (green-blind)
#A1913E
Tritanopia (blue-blind)
#929084
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9837;
/* rgb */ color: rgb(138, 152, 55);
/* oklch */ color: oklch(64.9% 0.122 116.9);
Tailwind
colors: {
  custom: {
    50: '#afb673',
    500: '#8a9837',
    950: '#000000',
  },
}
SCSS
$custom: #8a9837;
$custom-light: #afb673;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9837",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 55
  },
  "hsl": {
    "h": 68.66,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6488,
    "c": 0.12225,
    "h": 116.9
  },
  "luminance": 0.28136
}

Semantic roles & 50–950 ramp

primary
#8A9837
secondary
#7D73B8
accent
#51D665
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9837

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

Preview Lab → · Contrast checker → · Palette generator →

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