#9D9918#9D9918

#9D9918 is a light, vivid yellow. Relative luminance 0.300; OKLCH L 66.5% C 0.137 H 107.7°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#9D9918
RGBrgb(157, 153, 24)
HSLhsl(58, 73%, 35%)
HSVhsv(58, 85%, 62%)
CMYKcmyk(0%, 2.5%, 84.7%, 38.4%)
CIE-LABlab(61.67, -12.46, 60.81)
CIE-LCHlch(61.67, 62.08, 101.58°)
OKLaboklab(66.53% -0.0416 0.1306)
OKLCHoklch(66.53% 0.137 107.7)
XYZxyz(25.4618, 30.0174, 5.3167)
Luminance0.3002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9918 #181C9D
analogous
#9D5618 #9D9918 #5F9D18
triadic
#9D9918 #189D99 #99189D
tetradic
#9D9918 #189D56 #181C9D #9D185F
square
#9D9918 #189D56 #181C9D #9D185F
split-complementary
#9D9918 #185F9D #56189D
monochromatic
#333208 #686510 #9D9918 #D2CD20 #E4DF4C

Accessibility & contrast

On white

3.00
#9D9918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#9D9918 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9918
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9918#FFFFFF#000000##000000
##9D99181.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#A99725
Tritanopia (blue-blind)
#A98E82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9d9918;
/* rgb */ color: rgb(157, 153, 24);
/* oklch */ color: oklch(66.5% 0.137 107.7);
Tailwind
colors: {
  custom: {
    50: '#beb664',
    500: '#9d9918',
    950: '#000000',
  },
}
SCSS
$custom: #9d9918;
$custom-light: #beb664;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9918",
  "rgb": {
    "r": 157,
    "g": 153,
    "b": 24
  },
  "hsl": {
    "h": 58.195,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.6653,
    "c": 0.13705,
    "h": 107.7
  },
  "luminance": 0.30017
}

Semantic roles & 50–950 ramp

primary
#9D9918
secondary
#4B4FC5
accent
#3DF038
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D9918

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

Preview Lab → · Contrast checker → · Palette generator →

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