#8C811B#8C811B

#8C811B is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.5% C 0.116 H 102.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8C811B
RGBrgb(140, 129, 27)
HSLhsl(54, 68%, 33%)
HSVhsv(54, 81%, 55%)
CMYKcmyk(0%, 7.9%, 80.7%, 45.1%)
CIE-LABlab(53.34, -7.21, 52.16)
CIE-LCHlch(53.34, 52.65, 97.87°)
OKLaboklab(59.53% -0.0258 0.1133)
OKLCHoklch(59.53% 0.116 102.8)
XYZxyz(18.8642, 21.3559, 4.1652)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C811B #1B268C
analogous
#8C481B #8C811B #5F8C1B
triadic
#8C811B #1B8C81 #811B8C
tetradic
#8C811B #1B8C48 #1B268C #8C1B5F
square
#8C811B #1B8C48 #1B268C #8C1B5F
split-complementary
#8C811B #1B5F8C #481B8C
monochromatic
#252207 #595211 #8C811B #BFB025 #DBCD46

Accessibility & contrast

On white

3.98
#8C811B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8C811B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C811B
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C811B#FFFFFF#000000##000000
##8C811B1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#97776E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8c811b;
/* rgb */ color: rgb(140, 129, 27);
/* oklch */ color: oklch(59.5% 0.116 102.8);
Tailwind
colors: {
  custom: {
    50: '#b1a561',
    500: '#8c811b',
    950: '#000000',
  },
}
SCSS
$custom: #8c811b;
$custom-light: #b1a561;
$custom-dark: #000000;
JSON
{
  "hex": "#8c811b",
  "rgb": {
    "r": 140,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 54.159,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59527,
    "c": 0.11619,
    "h": 102.8
  },
  "luminance": 0.21355
}

Semantic roles & 50–950 ramp

primary
#8C811B
secondary
#4651BD
accent
#4EEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C811B

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

Preview Lab → · Contrast checker → · Palette generator →

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