#8C831B#8C831B

#8C831B is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.0% C 0.118 H 104.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8C831B
RGBrgb(140, 131, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 55%)
CMYKcmyk(0%, 6.4%, 80.7%, 45.1%)
CIE-LABlab(53.91, -8.31, 52.67)
CIE-LCHlch(53.91, 53.32, 98.96°)
OKLaboklab(59.98% -0.0289 0.1144)
OKLCHoklch(59.98% 0.118 104.2)
XYZxyz(19.1302, 21.8880, 4.2538)
Luminance0.2189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C831B #1B248C
analogous
#8C4A1B #8C831B #5D8C1B
triadic
#8C831B #1B8C83 #831B8C
tetradic
#8C831B #1B8C4A #1B248C #8C1B5D
square
#8C831B #1B8C4A #1B248C #8C1B5D
split-complementary
#8C831B #1B5D8C #4A1B8C
monochromatic
#252307 #595311 #8C831B #BFB325 #DBCF46

Accessibility & contrast

On white

3.91
#8C831B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#8C831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C831B
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C831B#FFFFFF#000000##000000
##8C831B1.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#928324
Tritanopia (blue-blind)
#977970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8c831b;
/* rgb */ color: rgb(140, 131, 27);
/* oklch */ color: oklch(60.0% 0.118 104.2);
Tailwind
colors: {
  custom: {
    50: '#b1a662',
    500: '#8c831b',
    950: '#000000',
  },
}
SCSS
$custom: #8c831b;
$custom-light: #b1a662;
$custom-dark: #000000;
JSON
{
  "hex": "#8c831b",
  "rgb": {
    "r": 140,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 55.221,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59982,
    "c": 0.11797,
    "h": 104.2
  },
  "luminance": 0.21887
}

Semantic roles & 50–950 ramp

primary
#8C831B
secondary
#464FBD
accent
#4BEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C831B

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

Preview Lab → · Contrast checker → · Palette generator →

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