#8B8727#8B8727

#8B8727 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.115 H 107.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8B8727
RGBrgb(139, 135, 39)
HSLhsl(58, 56%, 35%)
HSVhsv(58, 72%, 55%)
CMYKcmyk(0%, 2.9%, 71.9%, 45.5%)
CIE-LABlab(55.04, -10.39, 49.38)
CIE-LCHlch(55.04, 50.46, 101.89°)
OKLaboklab(60.88% -0.0335 0.1098)
OKLCHoklch(60.88% 0.115 107)
XYZxyz(19.6784, 22.9641, 5.3150)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8727 #272B8B
analogous
#8B5527 #8B8727 #5D8B27
triadic
#8B8727 #278B87 #87278B
tetradic
#8B8727 #278B55 #272B8B #8B275D
square
#8B8727 #278B55 #272B8B #8B275D
split-complementary
#8B8727 #275D8B #55278B
monochromatic
#2B2A0C #5B591A #8B8727 #BBB534 #D1CC5B

Accessibility & contrast

On white

3.75
#8B8727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#8B8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8727
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8727#FFFFFF#000000##000000
##8B87271.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#95852E
Tritanopia (blue-blind)
#957E74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b8727;
/* rgb */ color: rgb(139, 135, 39);
/* oklch */ color: oklch(60.9% 0.115 107.0);
Tailwind
colors: {
  custom: {
    50: '#b0a968',
    500: '#8b8727',
    950: '#000000',
  },
}
SCSS
$custom: #8b8727;
$custom-light: #b0a968;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8727",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 57.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6088,
    "c": 0.11478,
    "h": 107
  },
  "luminance": 0.22963
}

Semantic roles & 50–950 ramp

primary
#8B8727
secondary
#585BB6
accent
#4EDF48
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8727

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

Preview Lab → · Contrast checker → · Palette generator →

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