#9D9021#9D9021

#9D9021 is a light, vivid yellow. Relative luminance 0.272; OKLCH L 64.6% C 0.125 H 102.3°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9D9021
RGBrgb(157, 144, 33)
HSLhsl(54, 65%, 37%)
HSVhsv(54, 79%, 62%)
CMYKcmyk(0%, 8.3%, 79%, 38.4%)
CIE-LABlab(59.18, -7.36, 56.05)
CIE-LCHlch(59.18, 56.53, 97.48°)
OKLaboklab(64.56% -0.0266 0.122)
OKLCHoklch(64.56% 0.125 102.3)
XYZxyz(24.1535, 27.2255, 5.4213)
Luminance0.2722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9021 #212E9D
analogous
#9D5221 #9D9021 #6C9D21
triadic
#9D9021 #219D90 #90219D
tetradic
#9D9021 #219D52 #212E9D #9D216C
square
#9D9021 #219D52 #212E9D #9D216C
split-complementary
#9D9021 #216C9D #52219D
monochromatic
#38330C #6A6216 #9D9021 #D0BE2C #DDCF5C

Accessibility & contrast

On white

3.26
#9D9021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#9D9021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9021
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9021#FFFFFF#000000##000000
##9D90211.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B04
Deuteranopia (green-blind)
#A2912A
Tritanopia (blue-blind)
#A9857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d9021;
/* rgb */ color: rgb(157, 144, 33);
/* oklch */ color: oklch(64.6% 0.125 102.3);
Tailwind
colors: {
  custom: {
    50: '#beb066',
    500: '#9d9021',
    950: '#000000',
  },
}
SCSS
$custom: #9d9021;
$custom-light: #beb066;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9021",
  "rgb": {
    "r": 157,
    "g": 144,
    "b": 33
  },
  "hsl": {
    "h": 53.71,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.64562,
    "c": 0.12491,
    "h": 102.3
  },
  "luminance": 0.27224
}

Semantic roles & 50–950 ramp

primary
#9D9021
secondary
#5964C1
accent
#51E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D9021

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

Preview Lab → · Contrast checker → · Palette generator →

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