#8B7F1C#8B7F1C

#8B7F1C is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.114 H 102.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8B7F1C
RGBrgb(139, 127, 28)
HSLhsl(54, 66%, 33%)
HSVhsv(54, 80%, 55%)
CMYKcmyk(0%, 8.6%, 79.9%, 45.5%)
CIE-LABlab(52.68, -6.53, 51.20)
CIE-LCHlch(52.68, 51.61, 97.27°)
OKLaboklab(58.98% -0.0238 0.1115)
OKLCHoklch(58.98% 0.114 102)
XYZxyz(18.4473, 20.7524, 4.1323)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7F1C #1C288B
analogous
#8B481C #8B7F1C #5F8B1C
triadic
#8B7F1C #1C8B7F #7F1C8B
tetradic
#8B7F1C #1C8B48 #1C288B #8B1C5F
square
#8B7F1C #1C8B48 #1C288B #8B1C5F
split-complementary
#8B7F1C #1C5F8B #481C8B
monochromatic
#252207 #585012 #8B7F1C #BEAE26 #DACA47

Accessibility & contrast

On white

4.08
#8B7F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8B7F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7F1C
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7F1C#FFFFFF#000000##000000
##8B7F1C1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B03
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#96756D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b7f1c;
/* rgb */ color: rgb(139, 127, 28);
/* oklch */ color: oklch(59.0% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#b0a361',
    500: '#8b7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #8b7f1c;
$custom-light: #b0a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7f1c",
  "rgb": {
    "r": 139,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 53.514,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.11399,
    "h": 102
  },
  "luminance": 0.20752
}

Semantic roles & 50–950 ramp

primary
#8B7F1C
secondary
#4754BC
accent
#51E93E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8B7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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