#9D298C#9D298C

#9D298C is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.185 H 334.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9D298C
RGBrgb(157, 41, 140)
HSLhsl(309, 59%, 39%)
HSVhsv(309, 74%, 62%)
CMYKcmyk(0%, 73.9%, 10.8%, 38.4%)
CIE-LABlab(38.98, 57.55, -29.02)
CIE-LCHlch(38.98, 64.46, 333.24°)
OKLaboklab(49.85% 0.1676 -0.0794)
OKLCHoklch(49.85% 0.185 334.7)
XYZxyz(19.4314, 10.6491, 25.8380)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D298C #299D3A
analogous
#74299D #9D298C #9D2952
triadic
#9D298C #8C9D29 #298C9D
tetradic
#9D298C #9D7429 #299D3A #29529D
square
#9D298C #9D7429 #299D3A #29529D
split-complementary
#9D298C #529D29 #299D74
monochromatic
#3C1035 #6C1C61 #9D298C #CB38B6 #D869C7

Accessibility & contrast

On white

6.71
#9D298C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9D298C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D298C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D298C#FFFFFF#000000##FFFFFF
##9D298C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#516289
Tritanopia (blue-blind)
#A53358
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d298c;
/* rgb */ color: rgb(157, 41, 140);
/* oklch */ color: oklch(49.9% 0.185 334.7);
Tailwind
colors: {
  custom: {
    50: '#bd6fae',
    500: '#9d298c',
    950: '#000000',
  },
}
SCSS
$custom: #9d298c;
$custom-light: #bd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d298c",
  "rgb": {
    "r": 157,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 308.793,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4985,
    "c": 0.1854,
    "h": 334.7
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#9D298C
secondary
#64BE71
accent
#E25D46
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D298C

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

Preview Lab → · Contrast checker → · Palette generator →

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