#9D9818#9D9818

#9D9818 is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.3% C 0.136 H 107.1°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9D9818
RGBrgb(157, 152, 24)
HSLhsl(58, 73%, 35%)
HSVhsv(58, 85%, 62%)
CMYKcmyk(0%, 3.2%, 84.7%, 38.4%)
CIE-LABlab(61.39, -11.93, 60.57)
CIE-LCHlch(61.39, 61.74, 101.15°)
OKLaboklab(66.31% -0.0401 0.1301)
OKLCHoklch(66.31% 0.136 107.1)
XYZxyz(25.2988, 29.6915, 5.2624)
Luminance0.2969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9818 #181D9D
analogous
#9D5518 #9D9818 #609D18
triadic
#9D9818 #189D98 #98189D
tetradic
#9D9818 #189D55 #181D9D #9D1860
square
#9D9818 #189D55 #181D9D #9D1860
split-complementary
#9D9818 #18609D #55189D
monochromatic
#333108 #686510 #9D9818 #D2CB20 #E4DE4C

Accessibility & contrast

On white

3.03
#9D9818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#9D9818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9818
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9818#FFFFFF#000000##000000
##9D98181.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A89625
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9818;
/* rgb */ color: rgb(157, 152, 24);
/* oklch */ color: oklch(66.3% 0.136 107.1);
Tailwind
colors: {
  custom: {
    50: '#beb664',
    500: '#9d9818',
    950: '#000000',
  },
}
SCSS
$custom: #9d9818;
$custom-light: #beb664;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9818",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 24
  },
  "hsl": {
    "h": 57.744,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.66305,
    "c": 0.13612,
    "h": 107.1
  },
  "luminance": 0.29691
}

Semantic roles & 50–950 ramp

primary
#9D9818
secondary
#4B50C5
accent
#3FF038
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D9818

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

Preview Lab → · Contrast checker → · Palette generator →

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