#8A8838#8A8838

#8A8838 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.2% C 0.102 H 107.7°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A8838
RGBrgb(138, 136, 56)
HSLhsl(59, 42%, 38%)
HSVhsv(59, 59%, 54%)
CMYKcmyk(0%, 1.4%, 59.4%, 45.9%)
CIE-LABlab(55.38, -10.27, 42.25)
CIE-LCHlch(55.38, 43.48, 103.66°)
OKLaboklab(61.18% -0.0312 0.0975)
OKLCHoklch(61.18% 0.102 107.7)
XYZxyz(19.9998, 23.2977, 7.1840)
Luminance0.2330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8838 #383A8A
analogous
#8A5F38 #8A8838 #638A38
triadic
#8A8838 #388A88 #88388A
tetradic
#8A8838 #388A5F #383A8A #8A3863
square
#8A8838 #388A5F #383A8A #8A3863
split-complementary
#8A8838 #38638A #5F388A
monochromatic
#333215 #5E5D26 #8A8838 #B5B34A #C7C575

Accessibility & contrast

On white

3.71
#8A8838 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8A8838 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8838
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8838#FFFFFF#000000##000000
##8A88381.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93832F
Deuteranopia (green-blind)
#94863C
Tritanopia (blue-blind)
#938077
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8838;
/* rgb */ color: rgb(138, 136, 56);
/* oklch */ color: oklch(61.2% 0.102 107.7);
Tailwind
colors: {
  custom: {
    50: '#aeaa72',
    500: '#8a8838',
    950: '#000000',
  },
}
SCSS
$custom: #8a8838;
$custom-light: #aeaa72;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8838",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 56
  },
  "hsl": {
    "h": 58.537,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.10233,
    "h": 107.7
  },
  "luminance": 0.23297
}

Semantic roles & 50–950 ramp

primary
#8A8838
secondary
#6E6FB0
accent
#59D256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8838

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

Preview Lab → · Contrast checker → · Palette generator →

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