#8A9538#8A9538

#8A9538 is a light, moderate yellow. Relative luminance 0.272; OKLCH L 64.2% C 0.118 H 115.5°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8A9538
RGBrgb(138, 149, 56)
HSLhsl(67, 45%, 40%)
HSVhsv(67, 62%, 58%)
CMYKcmyk(7.4%, 0%, 62.4%, 41.6%)
CIE-LABlab(59.14, -17.17, 46.38)
CIE-LCHlch(59.14, 49.46, 110.31°)
OKLaboklab(64.19% -0.0507 0.1062)
OKLCHoklch(64.19% 0.118 115.5)
XYZxyz(21.9430, 27.1840, 7.8317)
Luminance0.2718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9538 #433895
analogous
#957238 #8A9538 #5B9538
triadic
#8A9538 #388A95 #95388A
tetradic
#8A9538 #389572 #433895 #95385B
square
#8A9538 #389572 #433895 #95385B
split-complementary
#8A9538 #385B95 #723895
monochromatic
#383C17 #616927 #8A9538 #AFBC4E #C3CD7A

Accessibility & contrast

On white

3.26
#8A9538 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#8A9538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9538
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9538#FFFFFF#000000##000000
##8A95381.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8E2D
Deuteranopia (green-blind)
#9E8F3E
Tritanopia (blue-blind)
#928D81
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a9538;
/* rgb */ color: rgb(138, 149, 56);
/* oklch */ color: oklch(64.2% 0.118 115.5);
Tailwind
colors: {
  custom: {
    50: '#aeb473',
    500: '#8a9538',
    950: '#000000',
  },
}
SCSS
$custom: #8a9538;
$custom-light: #aeb473;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9538",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 56
  },
  "hsl": {
    "h": 67.097,
    "s": 45.366,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64187,
    "c": 0.1177,
    "h": 115.5
  },
  "luminance": 0.27184
}

Semantic roles & 50–950 ramp

primary
#8A9538
secondary
#7B73B6
accent
#53D562
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9538

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

Preview Lab → · Contrast checker → · Palette generator →

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