#9DA821#9DA821

#9DA821 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.0% C 0.148 H 114.5°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#9DA821
RGBrgb(157, 168, 33)
HSLhsl(65, 67%, 39%)
HSVhsv(65, 80%, 66%)
CMYKcmyk(6.5%, 0%, 80.4%, 34.1%)
CIE-LABlab(65.97, -19.90, 62.11)
CIE-LCHlch(65.97, 65.22, 107.76°)
OKLaboklab(69.98% -0.0615 0.135)
OKLCHoklch(69.98% 0.148 114.5)
XYZxyz(28.1826, 35.2837, 6.7644)
Luminance0.3528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DA821 #2C21A8
analogous
#A87021 #9DA821 #5AA821
triadic
#9DA821 #219DA8 #A8219D
tetradic
#9DA821 #21A870 #2C21A8 #A8215A
square
#9DA821 #21A870 #2C21A8 #A8215A
split-complementary
#9DA821 #215AA8 #7021A8
monochromatic
#3D420D #6D7517 #9DA821 #C9D630 #D6E063

Accessibility & contrast

On white

2.61
#9DA821 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#9DA821 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DA821
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DA821#FFFFFF#000000##000000
##9DA8211.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B4A12E
Tritanopia (blue-blind)
#A89E90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9da821;
/* rgb */ color: rgb(157, 168, 33);
/* oklch */ color: oklch(70.0% 0.148 114.5);
Tailwind
colors: {
  custom: {
    50: '#bec16a',
    500: '#9da821',
    950: '#000000',
  },
}
SCSS
$custom: #9da821;
$custom-light: #bec16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9da821",
  "rgb": {
    "r": 157,
    "g": 168,
    "b": 33
  },
  "hsl": {
    "h": 64.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69982,
    "c": 0.14838,
    "h": 114.5
  },
  "luminance": 0.35283
}

Semantic roles & 50–950 ramp

primary
#9DA821
secondary
#685FC5
accent
#3EEA4C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9DA821

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

Preview Lab → · Contrast checker → · Palette generator →

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