#9D2298#9D2298

#9D2298 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.201 H 329.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9D2298
RGBrgb(157, 34, 152)
HSLhsl(302, 64%, 37%)
HSVhsv(302, 78%, 62%)
CMYKcmyk(0%, 78.3%, 3.2%, 38.4%)
CIE-LABlab(38.87, 61.62, -36.52)
CIE-LCHlch(38.87, 71.63, 329.34°)
OKLaboklab(49.97% 0.1744 -0.101)
OKLCHoklch(49.97% 0.201 329.9)
XYZxyz(20.1441, 10.5807, 30.6810)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2298 #229D27
analogous
#65229D #9D2298 #9D225B
triadic
#9D2298 #989D22 #22989D
tetradic
#9D2298 #9D6522 #229D27 #225B9D
square
#9D2298 #9D6522 #229D27 #225B9D
split-complementary
#9D2298 #5B9D22 #229D65
monochromatic
#380C37 #6B1767 #9D2298 #CF2DC9 #DC5DD7

Accessibility & contrast

On white

6.74
#9D2298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9D2298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2298
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2298#FFFFFF#000000##FFFFFF
##9D22981.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D519B
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#A3345C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d2298;
/* rgb */ color: rgb(157, 34, 152);
/* oklch */ color: oklch(50.0% 0.201 329.9);
Tailwind
colors: {
  custom: {
    50: '#be6cb7',
    500: '#9d2298',
    950: '#000000',
  },
}
SCSS
$custom: #9d2298;
$custom-light: #be6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2298",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 302.439,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49974,
    "c": 0.20149,
    "h": 329.9
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#9D2298
secondary
#5AC15E
accent
#E74740
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2298

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

Preview Lab → · Contrast checker → · Palette generator →

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