#8A8A18#8A8A18

#8A8A18 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.4% C 0.126 H 109.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A8A18
RGBrgb(138, 138, 24)
HSLhsl(60, 70%, 32%)
HSVhsv(60, 83%, 54%)
CMYKcmyk(0%, 0%, 82.6%, 45.9%)
CIE-LABlab(55.73, -13.11, 55.10)
CIE-LCHlch(55.73, 56.64, 103.39°)
OKLaboklab(61.39% -0.0424 0.1191)
OKLCHoklch(61.39% 0.126 109.6)
XYZxyz(19.7353, 23.6468, 4.3887)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A18 #18188A
analogous
#8A5118 #8A8A18 #518A18
triadic
#8A8A18 #188A8A #8A188A
tetradic
#8A8A18 #188A51 #18188A #8A1851
square
#8A8A18 #188A51 #18188A #8A1851
split-complementary
#8A8A18 #18518A #51188A
monochromatic
#222206 #56560F #8A8A18 #BEBE21 #DEDE3F

Accessibility & contrast

On white

3.67
#8A8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#8A8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A18
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A18#FFFFFF#000000##000000
##8A8A181.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#948176
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8a18;
/* rgb */ color: rgb(138, 138, 24);
/* oklch */ color: oklch(61.4% 0.126 109.6);
Tailwind
colors: {
  custom: {
    50: '#b0ab61',
    500: '#8a8a18',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a18;
$custom-light: #b0ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a18",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61389,
    "c": 0.12645,
    "h": 109.6
  },
  "luminance": 0.23646
}

Semantic roles & 50–950 ramp

primary
#8A8A18
secondary
#4040BD
accent
#3BED3B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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