#8A8C16#8A8C16

#8A8C16 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.8% C 0.129 H 110.7°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A8C16
RGBrgb(138, 140, 22)
HSLhsl(61, 73%, 32%)
HSVhsv(61, 84%, 55%)
CMYKcmyk(1.4%, 0%, 84.3%, 45.1%)
CIE-LABlab(56.31, -14.24, 56.14)
CIE-LCHlch(56.31, 57.92, 104.23°)
OKLaboklab(61.85% -0.0457 0.121)
OKLCHoklch(61.85% 0.129 110.7)
XYZxyz(20.0049, 24.2179, 4.3796)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C16 #18168C
analogous
#8C5316 #8A8C16 #4F8C16
triadic
#8A8C16 #168A8C #8C168A
tetradic
#8A8C16 #168C53 #18168C #8C164F
square
#8A8C16 #168C53 #18168C #8C164F
split-complementary
#8A8C16 #164F8C #53168C
monochromatic
#222205 #56570E #8A8C16 #BEC11E #DEE03C

Accessibility & contrast

On white

3.59
#8A8C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A8C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C16
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C16#FFFFFF#000000##000000
##8A8C161.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#998822
Tritanopia (blue-blind)
#948377
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c16;
/* rgb */ color: rgb(138, 140, 22);
/* oklch */ color: oklch(61.8% 0.129 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad61',
    500: '#8a8c16',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c16;
$custom-light: #b0ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c16",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 22
  },
  "hsl": {
    "h": 61.017,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61845,
    "c": 0.12934,
    "h": 110.7
  },
  "luminance": 0.24217
}

Semantic roles & 50–950 ramp

primary
#8A8C16
secondary
#403EC0
accent
#38F03B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8C16

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

Preview Lab → · Contrast checker → · Palette generator →

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