#8C8A22#8C8A22

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

Color values

HEX#8C8A22
RGBrgb(140, 138, 34)
HSLhsl(59, 61%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 1.4%, 75.7%, 45.1%)
CIE-LABlab(55.96, -11.81, 52.17)
CIE-LCHlch(55.96, 53.49, 102.75°)
OKLaboklab(61.63% -0.038 0.1147)
OKLCHoklch(61.63% 0.121 108.3)
XYZxyz(20.1932, 23.8686, 5.0565)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A22 #22248C
analogous
#8C5522 #8C8A22 #598C22
triadic
#8C8A22 #228C8A #8A228C
tetradic
#8C8A22 #228C55 #22248C #8C2259
square
#8C8A22 #228C55 #22248C #8C2259
split-complementary
#8C8A22 #22598C #55228C
monochromatic
#2A290A #5B5916 #8C8A22 #BDBB2E #D5D353

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A22#FFFFFF#000000##000000
##8C8A221.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)
#96840C
Deuteranopia (green-blind)
#97882A
Tritanopia (blue-blind)
#968176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a22;
/* rgb */ color: rgb(140, 138, 34);
/* oklch */ color: oklch(61.6% 0.121 108.3);
Tailwind
colors: {
  custom: {
    50: '#b1ab66',
    500: '#8c8a22',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a22;
$custom-light: #b1ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a22",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 58.868,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61626,
    "c": 0.12085,
    "h": 108.3
  },
  "luminance": 0.23868
}

Semantic roles & 50–950 ramp

primary
#8C8A22
secondary
#5153B9
accent
#47E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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