#8A9938#8A9938

#8A9938 is a light, vivid yellow. Relative luminance 0.285; OKLCH L 65.1% C 0.123 H 117.4°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A9938
RGBrgb(138, 153, 56)
HSLhsl(69, 46%, 41%)
HSVhsv(69, 63%, 60%)
CMYKcmyk(9.8%, 0%, 63.4%, 40%)
CIE-LABlab(60.31, -19.23, 47.64)
CIE-LCHlch(60.31, 51.38, 111.98°)
OKLaboklab(65.12% -0.0564 0.1089)
OKLCHoklch(65.12% 0.123 117.4)
XYZxyz(22.5867, 28.4715, 8.0463)
Luminance0.2847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9938 #473899
analogous
#997738 #8A9938 #599938
triadic
#8A9938 #388A99 #99388A
tetradic
#8A9938 #389977 #473899 #993859
square
#8A9938 #389977 #473899 #993859
split-complementary
#8A9938 #385999 #773899
monochromatic
#393F17 #626C28 #8A9938 #AEBF4F #C2CF7C

Accessibility & contrast

On white

3.14
#8A9938 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#8A9938 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9938
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9938#FFFFFF#000000##000000
##8A99381.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3912C
Deuteranopia (green-blind)
#A1923F
Tritanopia (blue-blind)
#929185
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9938;
/* rgb */ color: rgb(138, 153, 56);
/* oklch */ color: oklch(65.1% 0.123 117.4);
Tailwind
colors: {
  custom: {
    50: '#afb773',
    500: '#8a9938',
    950: '#000000',
  },
}
SCSS
$custom: #8a9938;
$custom-light: #afb773;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9938",
  "rgb": {
    "r": 138,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 69.278,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.65124,
    "c": 0.12267,
    "h": 117.4
  },
  "luminance": 0.28471
}

Semantic roles & 50–950 ramp

primary
#8A9938
secondary
#7F74B8
accent
#52D666
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9938

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

Preview Lab → · Contrast checker → · Palette generator →

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