#8A8C18#8A8C18

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

Color values

HEX#8A8C18
RGBrgb(138, 140, 24)
HSLhsl(61, 71%, 32%)
HSVhsv(61, 83%, 55%)
CMYKcmyk(1.4%, 0%, 82.9%, 45.1%)
CIE-LABlab(56.31, -14.18, 55.61)
CIE-LCHlch(56.31, 57.38, 104.30°)
OKLaboklab(61.85% -0.0454 0.1202)
OKLCHoklch(61.85% 0.128 110.7)
XYZxyz(20.0249, 24.2260, 4.4852)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C18 #1A188C
analogous
#8C5418 #8A8C18 #508C18
triadic
#8A8C18 #188A8C #8C188A
tetradic
#8A8C18 #188C54 #1A188C #8C1850
square
#8A8C18 #188C54 #1A188C #8C1850
split-complementary
#8A8C18 #18508C #54188C
monochromatic
#232406 #57580F #8A8C18 #BDC021 #DCDE40

Accessibility & contrast

On white

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

On black

5.85
#8A8C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C18
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C18#FFFFFF#000000##000000
##8A8C181.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a8c18;
/* rgb */ color: rgb(138, 140, 24);
/* oklch */ color: oklch(61.9% 0.128 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad62',
    500: '#8a8c18',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c18;
$custom-light: #b0ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c18",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 61.034,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61854,
    "c": 0.12849,
    "h": 110.7
  },
  "luminance": 0.24225
}

Semantic roles & 50–950 ramp

primary
#8A8C18
secondary
#4341BF
accent
#3AED3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C18

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

Preview Lab → · Contrast checker → · Palette generator →

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