#9D9718#9D9718

#9D9718 is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.1% C 0.135 H 106.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9D9718
RGBrgb(157, 151, 24)
HSLhsl(57, 73%, 35%)
HSVhsv(57, 85%, 62%)
CMYKcmyk(0%, 3.8%, 84.7%, 38.4%)
CIE-LABlab(61.11, -11.41, 60.34)
CIE-LCHlch(61.11, 61.41, 100.70°)
OKLaboklab(66.08% -0.0386 0.1296)
OKLCHoklch(66.08% 0.135 106.6)
XYZxyz(25.1372, 29.3682, 5.2085)
Luminance0.2937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9718 #181E9D
analogous
#9D5418 #9D9718 #619D18
triadic
#9D9718 #189D97 #97189D
tetradic
#9D9718 #189D54 #181E9D #9D1861
square
#9D9718 #189D54 #181E9D #9D1861
split-complementary
#9D9718 #18619D #54189D
monochromatic
#333108 #686410 #9D9718 #D2CA20 #E4DD4C

Accessibility & contrast

On white

3.06
#9D9718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#9D9718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9718
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9718#FFFFFF#000000##000000
##9D97181.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A79625
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9d9718;
/* rgb */ color: rgb(157, 151, 24);
/* oklch */ color: oklch(66.1% 0.135 106.6);
Tailwind
colors: {
  custom: {
    50: '#beb564',
    500: '#9d9718',
    950: '#000000',
  },
}
SCSS
$custom: #9d9718;
$custom-light: #beb564;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9718",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 24
  },
  "hsl": {
    "h": 57.293,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.6608,
    "c": 0.1352,
    "h": 106.6
  },
  "luminance": 0.29367
}

Semantic roles & 50–950 ramp

primary
#9D9718
secondary
#4B51C5
accent
#40F038
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D9718

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

Preview Lab → · Contrast checker → · Palette generator →

#9D9718 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva