#8C831F#8C831F

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

Color values

HEX#8C831F
RGBrgb(140, 131, 31)
HSLhsl(55, 64%, 34%)
HSVhsv(55, 78%, 55%)
CMYKcmyk(0%, 6.4%, 77.9%, 45.1%)
CIE-LABlab(53.93, -8.15, 51.35)
CIE-LCHlch(53.93, 51.99, 99.01°)
OKLaboklab(60.01% -0.0281 0.1124)
OKLCHoklch(60.01% 0.116 104)
XYZxyz(19.1797, 21.9078, 4.5144)
Luminance0.2191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C831F #1F288C
analogous
#8C4C1F #8C831F #5E8C1F
triadic
#8C831F #1F8C83 #831F8C
tetradic
#8C831F #1F8C4C #1F288C #8C1F5E
square
#8C831F #1F8C4C #1F288C #8C1F5E
split-complementary
#8C831F #1F5E8C #4C1F8C
monochromatic
#282509 #5A5414 #8C831F #BEB22A #D8CC4E

Accessibility & contrast

On white

3.90
#8C831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C831F#FFFFFF#000000##000000
##8C831F1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c831f;
/* rgb */ color: rgb(140, 131, 31);
/* oklch */ color: oklch(60.0% 0.116 104.0);
Tailwind
colors: {
  custom: {
    50: '#b1a663',
    500: '#8c831f',
    950: '#000000',
  },
}
SCSS
$custom: #8c831f;
$custom-light: #b1a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8c831f",
  "rgb": {
    "r": 140,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 55.046,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60005,
    "c": 0.11582,
    "h": 104
  },
  "luminance": 0.21907
}

Semantic roles & 50–950 ramp

primary
#8C831F
secondary
#4C55BB
accent
#4FE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C831F

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

Preview Lab → · Contrast checker → · Palette generator →

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