#8A8538#8A8538

#8A8538 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.5% C 0.099 H 105.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A8538
RGBrgb(138, 133, 56)
HSLhsl(56, 42%, 38%)
HSVhsv(56, 59%, 54%)
CMYKcmyk(0%, 3.6%, 59.4%, 45.9%)
CIE-LABlab(54.52, -8.64, 41.29)
CIE-LCHlch(54.52, 42.18, 101.81°)
OKLaboklab(60.49% -0.0265 0.0954)
OKLCHoklch(60.49% 0.099 105.5)
XYZxyz(19.5832, 22.4645, 7.0451)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8538 #383D8A
analogous
#8A5C38 #8A8538 #668A38
triadic
#8A8538 #388A85 #85388A
tetradic
#8A8538 #388A5C #383D8A #8A3866
square
#8A8538 #388A5C #383D8A #8A3866
split-complementary
#8A8538 #38668A #5C388A
monochromatic
#333115 #5E5B26 #8A8538 #B5AF4A #C7C275

Accessibility & contrast

On white

3.82
#8A8538 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#8A8538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8538
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8538#FFFFFF#000000##000000
##8A85381.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#908030
Deuteranopia (green-blind)
#92843C
Tritanopia (blue-blind)
#947D74
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8538;
/* rgb */ color: rgb(138, 133, 56);
/* oklch */ color: oklch(60.5% 0.099 105.5);
Tailwind
colors: {
  custom: {
    50: '#aea872',
    500: '#8a8538',
    950: '#000000',
  },
}
SCSS
$custom: #8a8538;
$custom-light: #aea872;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8538",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 56
  },
  "hsl": {
    "h": 56.341,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.60492,
    "c": 0.09903,
    "h": 105.5
  },
  "luminance": 0.22464
}

Semantic roles & 50–950 ramp

primary
#8A8538
secondary
#6E72B0
accent
#5DD256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A8538

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

Preview Lab → · Contrast checker → · Palette generator →

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