#8D841B#8D841B

#8D841B is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.3% C 0.119 H 104.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8D841B
RGBrgb(141, 132, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 55%)
CMYKcmyk(0%, 6.4%, 80.9%, 44.7%)
CIE-LABlab(54.29, -8.39, 53.04)
CIE-LCHlch(54.29, 53.70, 98.99°)
OKLaboklab(60.31% -0.0292 0.1151)
OKLCHoklch(60.31% 0.119 104.2)
XYZxyz(19.4345, 22.2452, 4.3067)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D841B #1B248D
analogous
#8D4B1B #8D841B #5D8D1B
triadic
#8D841B #1B8D84 #841B8D
tetradic
#8D841B #1B8D4B #1B248D #8D1B5D
square
#8D841B #1B8D4B #1B248D #8D1B5D
split-complementary
#8D841B #1B5D8D #4B1B8D
monochromatic
#262407 #5A5411 #8D841B #C0B425 #DCD047

Accessibility & contrast

On white

3.85
#8D841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#8D841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D841B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D841B#FFFFFF#000000##000000
##8D841B1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#987A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8d841b;
/* rgb */ color: rgb(141, 132, 27);
/* oklch */ color: oklch(60.3% 0.119 104.2);
Tailwind
colors: {
  custom: {
    50: '#b2a762',
    500: '#8d841b',
    950: '#000000',
  },
}
SCSS
$custom: #8d841b;
$custom-light: #b2a762;
$custom-dark: #000000;
JSON
{
  "hex": "#8d841b",
  "rgb": {
    "r": 141,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 55.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60305,
    "c": 0.11877,
    "h": 104.2
  },
  "luminance": 0.22244
}

Semantic roles & 50–950 ramp

primary
#8D841B
secondary
#4650BD
accent
#4BEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8D841B

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

Preview Lab → · Contrast checker → · Palette generator →

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