#8D7B18#8D7B18

#8D7B18 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.3% C 0.113 H 98.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8D7B18
RGBrgb(141, 123, 24)
HSLhsl(51, 71%, 32%)
HSVhsv(51, 83%, 55%)
CMYKcmyk(0%, 12.8%, 83%, 44.7%)
CIE-LABlab(51.72, -3.53, 51.72)
CIE-LCHlch(51.72, 51.84, 93.90°)
OKLaboklab(58.26% -0.0158 0.1117)
OKLCHoklch(58.26% 0.113 98)
XYZxyz(18.2333, 19.8956, 3.7438)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7B18 #182A8D
analogous
#8D4018 #8D7B18 #658D18
triadic
#8D7B18 #188D7B #7B188D
tetradic
#8D7B18 #188D40 #182A8D #8D1865
square
#8D7B18 #188D40 #182A8D #8D1865
split-complementary
#8D7B18 #18658D #40188D
monochromatic
#242006 #594D0F #8D7B18 #C1A921 #DFC641

Accessibility & contrast

On white

4.22
#8D7B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8D7B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7B18
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7B18#FFFFFF#000000##000000
##8D7B181.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#997169
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8d7b18;
/* rgb */ color: rgb(141, 123, 24);
/* oklch */ color: oklch(58.3% 0.113 98.0);
Tailwind
colors: {
  custom: {
    50: '#b2a05f',
    500: '#8d7b18',
    950: '#000000',
  },
}
SCSS
$custom: #8d7b18;
$custom-light: #b2a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7b18",
  "rgb": {
    "r": 141,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 50.769,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58261,
    "c": 0.11278,
    "h": 98
  },
  "luminance": 0.19895
}

Semantic roles & 50–950 ramp

primary
#8D7B18
secondary
#4255BF
accent
#56EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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