#8D8918#8D8918

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

Color values

HEX#8D8918
RGBrgb(141, 137, 24)
HSLhsl(58, 71%, 32%)
HSVhsv(58, 83%, 55%)
CMYKcmyk(0%, 2.8%, 83%, 44.7%)
CIE-LABlab(55.71, -11.21, 55.18)
CIE-LCHlch(55.71, 56.31, 101.48°)
OKLaboklab(61.43% -0.0373 0.1192)
OKLCHoklch(61.43% 0.125 107.4)
XYZxyz(20.0959, 23.6207, 4.3647)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8918 #181C8D
analogous
#8D4F18 #8D8918 #568D18
triadic
#8D8918 #188D89 #89188D
tetradic
#8D8918 #188D4F #181C8D #8D1856
square
#8D8918 #188D4F #181C8D #8D1856
split-complementary
#8D8918 #18568D #4F188D
monochromatic
#242306 #59560F #8D8918 #C1BC21 #DFD941

Accessibility & contrast

On white

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

On black

5.72
#8D8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8918
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8918#FFFFFF#000000##000000
##8D89181.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#987F75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8d8918;
/* rgb */ color: rgb(141, 137, 24);
/* oklch */ color: oklch(61.4% 0.125 107.4);
Tailwind
colors: {
  custom: {
    50: '#b2ab61',
    500: '#8d8918',
    950: '#000000',
  },
}
SCSS
$custom: #8d8918;
$custom-light: #b2ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8918",
  "rgb": {
    "r": 141,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 57.949,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61432,
    "c": 0.12486,
    "h": 107.4
  },
  "luminance": 0.2362
}

Semantic roles & 50–950 ramp

primary
#8D8918
secondary
#4246BF
accent
#40EE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8D8918

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

Preview Lab → · Contrast checker → · Palette generator →

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