#8B8927#8B8927

#8B8927 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.3% C 0.117 H 108.2°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8B8927
RGBrgb(139, 137, 39)
HSLhsl(59, 56%, 35%)
HSVhsv(59, 72%, 55%)
CMYKcmyk(0%, 1.4%, 71.9%, 45.5%)
CIE-LABlab(55.61, -11.47, 49.95)
CIE-LCHlch(55.61, 51.25, 102.94°)
OKLaboklab(61.34% -0.0366 0.111)
OKLCHoklch(61.34% 0.117 108.2)
XYZxyz(19.9601, 23.5274, 5.4089)
Luminance0.2353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8927 #27298B
analogous
#8B5727 #8B8927 #5B8B27
triadic
#8B8927 #278B89 #89278B
tetradic
#8B8927 #278B57 #27298B #8B275B
square
#8B8927 #278B57 #27298B #8B275B
split-complementary
#8B8927 #275B8B #57278B
monochromatic
#2B2B0C #5B5A1A #8B8927 #BBB834 #D1CF5B

Accessibility & contrast

On white

3.68
#8B8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#8B8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8927
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8927#FFFFFF#000000##000000
##8B89271.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958317
Deuteranopia (green-blind)
#96872E
Tritanopia (blue-blind)
#958076
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8b8927;
/* rgb */ color: rgb(139, 137, 39);
/* oklch */ color: oklch(61.3% 0.117 108.2);
Tailwind
colors: {
  custom: {
    50: '#b0ab68',
    500: '#8b8927',
    950: '#000000',
  },
}
SCSS
$custom: #8b8927;
$custom-light: #b0ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8927",
  "rgb": {
    "r": 139,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 58.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6134,
    "c": 0.11685,
    "h": 108.2
  },
  "luminance": 0.23527
}

Semantic roles & 50–950 ramp

primary
#8B8927
secondary
#585AB6
accent
#4BDF48
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8927

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

Preview Lab → · Contrast checker → · Palette generator →

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