#8C8A2A#8C8A2A

#8C8A2A is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.7% C 0.116 H 108.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8C8A2A
RGBrgb(140, 138, 42)
HSLhsl(59, 54%, 36%)
HSVhsv(59, 70%, 55%)
CMYKcmyk(0%, 1.4%, 70%, 45.1%)
CIE-LABlab(56.01, -11.39, 49.17)
CIE-LCHlch(56.01, 50.48, 103.05°)
OKLaboklab(61.68% -0.0361 0.1099)
OKLCHoklch(61.68% 0.116 108.2)
XYZxyz(20.3223, 23.9202, 5.7366)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A2A #2A2C8C
analogous
#8C592A #8C8A2A #5D8C2A
triadic
#8C8A2A #2A8C8A #8A2A8C
tetradic
#8C8A2A #2A8C59 #2A2C8C #8C2A5D
square
#8C8A2A #2A8C59 #2A2C8C #8C2A5D
split-complementary
#8C8A2A #2A5D8C #592A8C
monochromatic
#2E2D0E #5D5C1C #8C8A2A #BBB838 #D0CD61

Accessibility & contrast

On white

3.63
#8C8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8C8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A2A
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A2A#FFFFFF#000000##000000
##8C8A2A1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#978831
Tritanopia (blue-blind)
#968177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a2a;
/* rgb */ color: rgb(140, 138, 42);
/* oklch */ color: oklch(61.7% 0.116 108.2);
Tailwind
colors: {
  custom: {
    50: '#b1ab6a',
    500: '#8c8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a2a;
$custom-light: #b1ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a2a",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 58.776,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.11563,
    "h": 108.2
  },
  "luminance": 0.2392
}

Semantic roles & 50–950 ramp

primary
#8C8A2A
secondary
#5C5EB5
accent
#4EDD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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