#8C8331#8C8331

#8C8331 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.2% C 0.103 H 103.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8C8331
RGBrgb(140, 131, 49)
HSLhsl(54, 48%, 37%)
HSVhsv(54, 65%, 55%)
CMYKcmyk(0%, 6.4%, 65%, 45.1%)
CIE-LABlab(54.06, -7.15, 44.13)
CIE-LCHlch(54.06, 44.71, 99.20°)
OKLaboklab(60.15% -0.0233 0.1004)
OKLCHoklch(60.15% 0.103 103.1)
XYZxyz(19.4866, 22.0305, 6.1310)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8331 #313A8C
analogous
#8C5631 #8C8331 #688C31
triadic
#8C8331 #318C83 #83318C
tetradic
#8C8331 #318C56 #313A8C #8C3168
square
#8C8331 #318C56 #313A8C #8C3168
split-complementary
#8C8331 #31688C #56318C
monochromatic
#312E11 #5F5921 #8C8331 #B9AD41 #CCC26C

Accessibility & contrast

On white

3.88
#8C8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8C8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8331
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8331#FFFFFF#000000##000000
##8C83311.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F27
Deuteranopia (green-blind)
#918336
Tritanopia (blue-blind)
#967A72
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8c8331;
/* rgb */ color: rgb(140, 131, 49);
/* oklch */ color: oklch(60.2% 0.103 103.1);
Tailwind
colors: {
  custom: {
    50: '#b0a66d',
    500: '#8c8331',
    950: '#000000',
  },
}
SCSS
$custom: #8c8331;
$custom-light: #b0a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8331",
  "rgb": {
    "r": 140,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 54.066,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6015,
    "c": 0.10306,
    "h": 103.1
  },
  "luminance": 0.2203
}

Semantic roles & 50–950 ramp

primary
#8C8331
secondary
#666DB3
accent
#5DD850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8C8331

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

Preview Lab → · Contrast checker → · Palette generator →

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