#8C8A2B#8C8A2B

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

Color values

HEX#8C8A2B
RGBrgb(140, 138, 43)
HSLhsl(59, 53%, 36%)
HSVhsv(59, 69%, 55%)
CMYKcmyk(0%, 1.4%, 69.3%, 45.1%)
CIE-LABlab(56.02, -11.34, 48.77)
CIE-LCHlch(56.02, 50.07, 103.09°)
OKLaboklab(61.69% -0.0358 0.1092)
OKLCHoklch(61.69% 0.115 108.2)
XYZxyz(20.3405, 23.9275, 5.8320)
Luminance0.2393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A2B #2B2D8C
analogous
#8C592B #8C8A2B #5D8C2B
triadic
#8C8A2B #2B8C8A #8A2B8C
tetradic
#8C8A2B #2B8C59 #2B2D8C #8C2B5D
square
#8C8A2B #2B8C59 #2B2D8C #8C2B5D
split-complementary
#8C8A2B #2B5D8C #592B8C
monochromatic
#2E2E0E #5D5C1D #8C8A2B #BBB839 #CFCD62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A2B#FFFFFF#000000##000000
##8C8A2B1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c8a2b;
/* rgb */ color: rgb(140, 138, 43);
/* oklch */ color: oklch(61.7% 0.115 108.2);
Tailwind
colors: {
  custom: {
    50: '#b0ab6a',
    500: '#8c8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a2b;
$custom-light: #b0ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a2b",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 58.763,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61692,
    "c": 0.11491,
    "h": 108.2
  },
  "luminance": 0.23927
}

Semantic roles & 50–950 ramp

primary
#8C8A2B
secondary
#5E60B5
accent
#4EDC4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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