#8D7F1B#8D7F1B

#8D7F1B is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.114 H 100.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8D7F1B
RGBrgb(141, 127, 27)
HSLhsl(53, 68%, 33%)
HSVhsv(53, 81%, 55%)
CMYKcmyk(0%, 9.9%, 80.9%, 44.7%)
CIE-LABlab(52.86, -5.64, 51.77)
CIE-LCHlch(52.86, 52.08, 96.22°)
OKLaboklab(59.17% -0.0215 0.1124)
OKLCHoklch(59.17% 0.114 100.8)
XYZxyz(18.7726, 20.9215, 4.0861)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7F1B #1B298D
analogous
#8D461B #8D7F1B #628D1B
triadic
#8D7F1B #1B8D7F #7F1B8D
tetradic
#8D7F1B #1B8D46 #1B298D #8D1B62
square
#8D7F1B #1B8D46 #1B298D #8D1B62
split-complementary
#8D7F1B #1B628D #461B8D
monochromatic
#262207 #5A5111 #8D7F1B #C0AD25 #DCC947

Accessibility & contrast

On white

4.05
#8D7F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8D7F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7F1B
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7F1B#FFFFFF#000000##000000
##8D7F1B1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B01
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#98756C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8d7f1b;
/* rgb */ color: rgb(141, 127, 27);
/* oklch */ color: oklch(59.2% 0.114 100.8);
Tailwind
colors: {
  custom: {
    50: '#b2a361',
    500: '#8d7f1b',
    950: '#000000',
  },
}
SCSS
$custom: #8d7f1b;
$custom-light: #b2a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7f1b",
  "rgb": {
    "r": 141,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 52.632,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59174,
    "c": 0.11443,
    "h": 100.8
  },
  "luminance": 0.20921
}

Semantic roles & 50–950 ramp

primary
#8D7F1B
secondary
#4655BD
accent
#52EB3D
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8D7F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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