#8C8A31#8C8A31

#8C8A31 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.110 H 108.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8C8A31
RGBrgb(140, 138, 49)
HSLhsl(59, 48%, 37%)
HSVhsv(59, 65%, 55%)
CMYKcmyk(0%, 1.4%, 65%, 45.1%)
CIE-LABlab(56.06, -10.96, 46.26)
CIE-LCHlch(56.06, 47.54, 103.33°)
OKLaboklab(61.75% -0.0341 0.1049)
OKLCHoklch(61.75% 0.11 108)
XYZxyz(20.4588, 23.9748, 6.4550)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A31 #31338C
analogous
#8C5C31 #8C8A31 #618C31
triadic
#8C8A31 #318C8A #8A318C
tetradic
#8C8A31 #318C5C #31338C #8C3161
square
#8C8A31 #318C5C #31338C #8C3161
split-complementary
#8C8A31 #31618C #5C318C
monochromatic
#313111 #5F5D21 #8C8A31 #B9B741 #CCC96C

Accessibility & contrast

On white

3.62
#8C8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8C8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A31
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A31#FFFFFF#000000##000000
##8C8A311.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958526
Deuteranopia (green-blind)
#978837
Tritanopia (blue-blind)
#968178
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a31;
/* rgb */ color: rgb(140, 138, 49);
/* oklch */ color: oklch(61.7% 0.110 108.0);
Tailwind
colors: {
  custom: {
    50: '#b0ab6e',
    500: '#8c8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a31;
$custom-light: #b0ab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a31",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 58.681,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61745,
    "c": 0.11029,
    "h": 108
  },
  "luminance": 0.23974
}

Semantic roles & 50–950 ramp

primary
#8C8A31
secondary
#6667B3
accent
#53D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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