#8A8C24#8A8C24

#8A8C24 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.9% C 0.122 H 110.6°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A8C24
RGBrgb(138, 140, 36)
HSLhsl(61, 59%, 35%)
HSVhsv(61, 74%, 55%)
CMYKcmyk(1.4%, 0%, 74.3%, 45.1%)
CIE-LABlab(56.37, -13.68, 51.79)
CIE-LCHlch(56.37, 53.56, 104.80°)
OKLaboklab(61.92% -0.043 0.1143)
OKLCHoklch(61.92% 0.122 110.6)
XYZxyz(20.1784, 24.2874, 5.2937)
Luminance0.2429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C24 #26248C
analogous
#8C5A24 #8A8C24 #568C24
triadic
#8A8C24 #248A8C #8C248A
tetradic
#8A8C24 #248C5A #26248C #8C2456
square
#8A8C24 #248C5A #26248C #8C2456
split-complementary
#8A8C24 #24568C #5A248C
monochromatic
#2A2B0B #5A5B17 #8A8C24 #BABD31 #D1D457

Accessibility & contrast

On white

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

On black

5.86
#8A8C24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C24
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C24#FFFFFF#000000##000000
##8A8C241.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860F
Deuteranopia (green-blind)
#98892C
Tritanopia (blue-blind)
#948378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c24;
/* rgb */ color: rgb(138, 140, 36);
/* oklch */ color: oklch(61.9% 0.122 110.6);
Tailwind
colors: {
  custom: {
    50: '#afad67',
    500: '#8a8c24',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c24;
$custom-light: #afad67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c24",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 36
  },
  "hsl": {
    "h": 61.154,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61922,
    "c": 0.12215,
    "h": 110.6
  },
  "luminance": 0.24287
}

Semantic roles & 50–950 ramp

primary
#8A8C24
secondary
#5654B8
accent
#46E249
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C24

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

Preview Lab → · Contrast checker → · Palette generator →

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