#8D7D27#8D7D27

#8D7D27 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.105 H 98.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8D7D27
RGBrgb(141, 125, 39)
HSLhsl(51, 57%, 35%)
HSVhsv(51, 72%, 55%)
CMYKcmyk(0%, 11.3%, 72.3%, 44.7%)
CIE-LABlab(52.37, -3.98, 46.81)
CIE-LCHlch(52.37, 46.97, 94.86°)
OKLaboklab(58.81% -0.0155 0.1043)
OKLCHoklch(58.81% 0.105 98.5)
XYZxyz(18.6852, 20.4773, 4.8874)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D27 #27378D
analogous
#8D4A27 #8D7D27 #6A8D27
triadic
#8D7D27 #278D7D #7D278D
tetradic
#8D7D27 #278D4A #27378D #8D276A
square
#8D7D27 #278D4A #27378D #8D276A
split-complementary
#8D7D27 #276A8D #4A278D
monochromatic
#2D280C #5D521A #8D7D27 #BDA734 #D2C05C

Accessibility & contrast

On white

4.12
#8D7D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8D7D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7D27
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7D27#FFFFFF#000000##000000
##8D7D271.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1A
Deuteranopia (green-blind)
#8E7F2C
Tritanopia (blue-blind)
#98736C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d27;
/* rgb */ color: rgb(141, 125, 39);
/* oklch */ color: oklch(58.8% 0.105 98.5);
Tailwind
colors: {
  custom: {
    50: '#b2a267',
    500: '#8d7d27',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d27;
$custom-light: #b2a267;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d27",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 50.588,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.10542,
    "h": 98.5
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#8D7D27
secondary
#5967B7
accent
#60E048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7D27

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

Preview Lab → · Contrast checker → · Palette generator →

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