#8D7D22#8D7D22

#8D7D22 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.8% C 0.109 H 98.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D7D22
RGBrgb(141, 125, 34)
HSLhsl(51, 61%, 34%)
HSVhsv(51, 76%, 55%)
CMYKcmyk(0%, 11.3%, 75.9%, 44.7%)
CIE-LABlab(52.34, -4.23, 48.78)
CIE-LCHlch(52.34, 48.96, 94.96°)
OKLaboklab(58.77% -0.0168 0.1075)
OKLCHoklch(58.77% 0.109 98.9)
XYZxyz(18.6078, 20.4464, 4.4795)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D22 #22328D
analogous
#8D4822 #8D7D22 #688D22
triadic
#8D7D22 #228D7D #7D228D
tetradic
#8D7D22 #228D48 #22328D #8D2268
square
#8D7D22 #228D48 #22328D #8D2268
split-complementary
#8D7D22 #22688D #48228D
monochromatic
#2A260A #5C5116 #8D7D22 #BEA92E #D6C254

Accessibility & contrast

On white

4.13
#8D7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8D7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7D22
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7D22#FFFFFF#000000##000000
##8D7D221.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A12
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#98736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d22;
/* rgb */ color: rgb(141, 125, 34);
/* oklch */ color: oklch(58.8% 0.109 98.9);
Tailwind
colors: {
  custom: {
    50: '#b2a264',
    500: '#8d7d22',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d22;
$custom-light: #b2a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d22",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 51.028,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5877,
    "c": 0.10877,
    "h": 98.9
  },
  "luminance": 0.20445
}

Semantic roles & 50–950 ramp

primary
#8D7D22
secondary
#5161B9
accent
#5CE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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