#8B8A38#8B8A38

#8B8A38 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.104 H 108.5°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8B8A38
RGBrgb(139, 138, 56)
HSLhsl(59, 43%, 38%)
HSVhsv(59, 60%, 55%)
CMYKcmyk(0%, 0.7%, 59.7%, 45.5%)
CIE-LABlab(56.04, -10.90, 43.01)
CIE-LCHlch(56.04, 44.37, 104.23°)
OKLaboklab(61.73% -0.0331 0.0991)
OKLCHoklch(61.73% 0.104 108.5)
XYZxyz(20.4504, 23.9520, 7.2866)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A38 #38398B
analogous
#8B6038 #8B8A38 #628B38
triadic
#8B8A38 #388B8A #8A388B
tetradic
#8B8A38 #388B60 #38398B #8B3862
square
#8B8A38 #388B60 #38398B #8B3862
split-complementary
#8B8A38 #38628B #60388B
monochromatic
#343315 #5F5F26 #8B8A38 #B6B54A #C8C776

Accessibility & contrast

On white

3.63
#8B8A38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8B8A38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A38
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A38#FFFFFF#000000##000000
##8B8A381.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95852F
Deuteranopia (green-blind)
#96883D
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a38;
/* rgb */ color: rgb(139, 138, 56);
/* oklch */ color: oklch(61.7% 0.104 108.5);
Tailwind
colors: {
  custom: {
    50: '#afac72',
    500: '#8b8a38',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a38;
$custom-light: #afac72;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a38",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 56
  },
  "hsl": {
    "h": 59.277,
    "s": 42.564,
    "l": 38.235
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.10442,
    "h": 108.5
  },
  "luminance": 0.23951
}

Semantic roles & 50–950 ramp

primary
#8B8A38
secondary
#6E6FB1
accent
#57D255
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8B8A38

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

Preview Lab → · Contrast checker → · Palette generator →

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