#8A9838#8A9838

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

Color values

HEX#8A9838
RGBrgb(138, 152, 56)
HSLhsl(69, 46%, 41%)
HSVhsv(69, 63%, 60%)
CMYKcmyk(9.2%, 0%, 63.2%, 40.4%)
CIE-LABlab(60.02, -18.72, 47.33)
CIE-LCHlch(60.02, 50.90, 111.58°)
OKLaboklab(64.89% -0.055 0.1083)
OKLCHoklch(64.89% 0.121 116.9)
XYZxyz(22.4237, 28.1455, 7.9920)
Luminance0.2814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9838 #463898
analogous
#987638 #8A9838 #5A9838
triadic
#8A9838 #388A98 #98388A
tetradic
#8A9838 #389876 #463898 #98385A
square
#8A9838 #389876 #463898 #98385A
split-complementary
#8A9838 #385A98 #763898
monochromatic
#393F17 #616B28 #8A9838 #AEBE4F #C3CF7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9838#FFFFFF#000000##000000
##8A98381.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)
#A2902C
Deuteranopia (green-blind)
#A1913E
Tritanopia (blue-blind)
#929084
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9838;
/* rgb */ color: rgb(138, 152, 56);
/* oklch */ color: oklch(64.9% 0.121 116.9);
Tailwind
colors: {
  custom: {
    50: '#afb673',
    500: '#8a9838',
    950: '#000000',
  },
}
SCSS
$custom: #8a9838;
$custom-light: #afb673;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9838",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 56
  },
  "hsl": {
    "h": 68.75,
    "s": 46.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.6489,
    "c": 0.12143,
    "h": 116.9
  },
  "luminance": 0.28145
}

Semantic roles & 50–950 ramp

primary
#8A9838
secondary
#7E74B8
accent
#52D665
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9838

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

Preview Lab → · Contrast checker → · Palette generator →

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