#8D8A18#8D8A18

#8D8A18 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.7% C 0.126 H 108.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8D8A18
RGBrgb(141, 138, 24)
HSLhsl(58, 71%, 32%)
HSVhsv(58, 83%, 55%)
CMYKcmyk(0%, 2.1%, 83%, 44.7%)
CIE-LABlab(55.99, -11.74, 55.43)
CIE-LCHlch(55.99, 56.66, 101.96°)
OKLaboklab(61.66% -0.0388 0.1197)
OKLCHoklch(61.66% 0.126 108)
XYZxyz(20.2387, 23.9063, 4.4123)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A18 #181B8D
analogous
#8D5018 #8D8A18 #558D18
triadic
#8D8A18 #188D8A #8A188D
tetradic
#8D8A18 #188D50 #181B8D #8D1855
square
#8D8A18 #188D50 #181B8D #8D1855
split-complementary
#8D8A18 #18558D #50188D
monochromatic
#242406 #59570F #8D8A18 #C1BD21 #DFDB41

Accessibility & contrast

On white

3.63
#8D8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8D8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A18
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A18#FFFFFF#000000##000000
##8D8A181.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#988076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8a18;
/* rgb */ color: rgb(141, 138, 24);
/* oklch */ color: oklch(61.7% 0.126 108.0);
Tailwind
colors: {
  custom: {
    50: '#b2ab61',
    500: '#8d8a18',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a18;
$custom-light: #b2ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a18",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 58.462,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61662,
    "c": 0.12582,
    "h": 108
  },
  "luminance": 0.23906
}

Semantic roles & 50–950 ramp

primary
#8D8A18
secondary
#4245BF
accent
#3FEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8D8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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