#8C8A21#8C8A21

#8C8A21 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.6% C 0.121 H 108.4°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8C8A21
RGBrgb(140, 138, 33)
HSLhsl(59, 62%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 1.4%, 76.4%, 45.1%)
CIE-LABlab(55.95, -11.85, 52.52)
CIE-LCHlch(55.95, 53.84, 102.72°)
OKLaboklab(61.62% -0.0383 0.1153)
OKLCHoklch(61.62% 0.121 108.4)
XYZxyz(20.1790, 23.8629, 4.9816)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A21 #21238C
analogous
#8C5521 #8C8A21 #598C21
triadic
#8C8A21 #218C8A #8A218C
tetradic
#8C8A21 #218C55 #21238C #8C2159
square
#8C8A21 #218C55 #21238C #8C2159
split-complementary
#8C8A21 #21598C #55218C
monochromatic
#29280A #5A5915 #8C8A21 #BEBB2D #D6D451

Accessibility & contrast

On white

3.64
#8C8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8C8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A21
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A21#FFFFFF#000000##000000
##8C8A211.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968409
Deuteranopia (green-blind)
#978829
Tritanopia (blue-blind)
#968176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a21;
/* rgb */ color: rgb(140, 138, 33);
/* oklch */ color: oklch(61.6% 0.121 108.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab65',
    500: '#8c8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a21;
$custom-light: #b1ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a21",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 58.879,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.6162,
    "c": 0.12144,
    "h": 108.4
  },
  "luminance": 0.23862
}

Semantic roles & 50–950 ramp

primary
#8C8A21
secondary
#4F51B9
accent
#46E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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