#8C8A28#8C8A28

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

Color values

HEX#8C8A28
RGBrgb(140, 138, 40)
HSLhsl(59, 56%, 35%)
HSVhsv(59, 71%, 55%)
CMYKcmyk(0%, 1.4%, 71.4%, 45.1%)
CIE-LABlab(55.99, -11.51, 49.96)
CIE-LCHlch(55.99, 51.27, 102.97°)
OKLaboklab(61.67% -0.0366 0.1112)
OKLCHoklch(61.67% 0.117 108.2)
XYZxyz(20.2874, 23.9063, 5.5528)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A28 #282A8C
analogous
#8C5828 #8C8A28 #5C8C28
triadic
#8C8A28 #288C8A #8A288C
tetradic
#8C8A28 #288C58 #282A8C #8C285C
square
#8C8A28 #288C58 #282A8C #8C285C
split-complementary
#8C8A28 #285C8C #58288C
monochromatic
#2D2C0D #5C5B1A #8C8A28 #BCB936 #D1CF5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A28#FFFFFF#000000##000000
##8C8A281.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)
#968418
Deuteranopia (green-blind)
#97882F
Tritanopia (blue-blind)
#968177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a28;
/* rgb */ color: rgb(140, 138, 40);
/* oklch */ color: oklch(61.7% 0.117 108.2);
Tailwind
colors: {
  custom: {
    50: '#b1ab69',
    500: '#8c8a28',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a28;
$custom-light: #b1ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a28",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 58.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61668,
    "c": 0.11702,
    "h": 108.2
  },
  "luminance": 0.23906
}

Semantic roles & 50–950 ramp

primary
#8C8A28
secondary
#5A5BB6
accent
#4CDF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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