#8C8A2F#8C8A2F

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

Color values

HEX#8C8A2F
RGBrgb(140, 138, 47)
HSLhsl(59, 50%, 37%)
HSVhsv(59, 66%, 55%)
CMYKcmyk(0%, 1.4%, 66.4%, 45.1%)
CIE-LABlab(56.05, -11.09, 47.12)
CIE-LCHlch(56.05, 48.41, 103.25°)
OKLaboklab(61.73% -0.0347 0.1064)
OKLCHoklch(61.73% 0.112 108.1)
XYZxyz(20.4175, 23.9583, 6.2377)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A2F #2F318C
analogous
#8C5C2F #8C8A2F #608C2F
triadic
#8C8A2F #2F8C8A #8A2F8C
tetradic
#8C8A2F #2F8C5C #2F318C #8C2F60
square
#8C8A2F #2F8C5C #2F318C #8C2F60
split-complementary
#8C8A2F #2F608C #5C2F8C
monochromatic
#303010 #5E5D20 #8C8A2F #BAB73E #CDCA69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A2F#FFFFFF#000000##000000
##8C8A2F1.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)
#958523
Deuteranopia (green-blind)
#978835
Tritanopia (blue-blind)
#968177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a2f;
/* rgb */ color: rgb(140, 138, 47);
/* oklch */ color: oklch(61.7% 0.112 108.1);
Tailwind
colors: {
  custom: {
    50: '#b0ab6d',
    500: '#8c8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a2f;
$custom-light: #b0ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a2f",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 58.71,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61727,
    "c": 0.11189,
    "h": 108.1
  },
  "luminance": 0.23958
}

Semantic roles & 50–950 ramp

primary
#8C8A2F
secondary
#6365B4
accent
#52D94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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