#8A8D38#8A8D38

#8A8D38 is a light, moderate yellow. Relative luminance 0.247; OKLCH L 62.3% C 0.108 H 111.0°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A8D38
RGBrgb(138, 141, 56)
HSLhsl(62, 43%, 39%)
HSVhsv(62, 60%, 55%)
CMYKcmyk(2.1%, 0%, 60.3%, 44.7%)
CIE-LABlab(56.82, -12.96, 43.84)
CIE-LCHlch(56.82, 45.72, 106.46°)
OKLaboklab(62.33% -0.0388 0.1009)
OKLCHoklch(62.33% 0.108 111)
XYZxyz(20.7205, 24.7390, 7.4242)
Luminance0.2474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D38 #3B388D
analogous
#8D6538 #8A8D38 #5F8D38
triadic
#8A8D38 #388A8D #8D388A
tetradic
#8A8D38 #388D65 #3B388D #8D385F
square
#8A8D38 #388D65 #3B388D #8D385F
split-complementary
#8A8D38 #385F8D #65388D
monochromatic
#343515 #5F6127 #8A8D38 #B4B74B #C6C977

Accessibility & contrast

On white

3.53
#8A8D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#8A8D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D38
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D38#FFFFFF#000000##000000
##8A8D381.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#97872E
Deuteranopia (green-blind)
#988A3D
Tritanopia (blue-blind)
#93857B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d38;
/* rgb */ color: rgb(138, 141, 56);
/* oklch */ color: oklch(62.3% 0.108 111.0);
Tailwind
colors: {
  custom: {
    50: '#aeae72',
    500: '#8a8d38',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d38;
$custom-light: #aeae72;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d38",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 62.118,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.62328,
    "c": 0.10806,
    "h": 111
  },
  "luminance": 0.24739
}

Semantic roles & 50–950 ramp

primary
#8A8D38
secondary
#716FB2
accent
#55D359
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8D38

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

Preview Lab → · Contrast checker → · Palette generator →

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