#8C8F22#8C8F22

#8C8F22 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 62.8% C 0.126 H 111.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8C8F22
RGBrgb(140, 143, 34)
HSLhsl(62, 62%, 35%)
HSVhsv(62, 76%, 56%)
CMYKcmyk(2.1%, 0%, 76.2%, 43.9%)
CIE-LABlab(57.40, -14.47, 53.53)
CIE-LCHlch(57.40, 55.45, 105.12°)
OKLaboklab(62.78% -0.0455 0.1176)
OKLCHoklch(62.78% 0.126 111.1)
XYZxyz(20.9271, 25.3364, 5.3011)
Luminance0.2534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8F22 #25228F
analogous
#8F5B22 #8C8F22 #568F22
triadic
#8C8F22 #228C8F #8F228C
tetradic
#8C8F22 #228F5B #25228F #8F2256
square
#8C8F22 #228F5B #25228F #8F2256
split-complementary
#8C8F22 #22568F #5B228F
monochromatic
#2B2C0A #5C5E16 #8C8F22 #BCC02E #D3D755

Accessibility & contrast

On white

3.46
#8C8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8C8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8F22
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8F22#FFFFFF#000000##000000
##8C8F221.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8809
Deuteranopia (green-blind)
#9B8B2B
Tritanopia (blue-blind)
#96867A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8c8f22;
/* rgb */ color: rgb(140, 143, 34);
/* oklch */ color: oklch(62.8% 0.126 111.1);
Tailwind
colors: {
  custom: {
    50: '#b1af66',
    500: '#8c8f22',
    950: '#000000',
  },
}
SCSS
$custom: #8c8f22;
$custom-light: #b1af66;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8f22",
  "rgb": {
    "r": 140,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 61.651,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62781,
    "c": 0.12606,
    "h": 111.1
  },
  "luminance": 0.25336
}

Semantic roles & 50–950 ramp

primary
#8C8F22
secondary
#5552BA
accent
#43E548
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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