#9D2CA7#9D2CA7

#9D2CA7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.203 H 324.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D2CA7
RGBrgb(157, 44, 167)
HSLhsl(295, 58%, 41%)
HSVhsv(295, 74%, 65%)
CMYKcmyk(6%, 73.7%, 0%, 34.5%)
CIE-LABlab(40.83, 61.00, -42.42)
CIE-LCHlch(40.83, 74.30, 325.18°)
OKLaboklab(51.66% 0.1652 -0.1182)
OKLCHoklch(51.66% 0.203 324.4)
XYZxyz(21.7798, 11.7609, 37.6746)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2CA7 #36A72C
analogous
#602CA7 #9D2CA7 #A72C74
triadic
#9D2CA7 #A79D2C #2CA79D
tetradic
#9D2CA7 #A7602C #36A72C #2C74A7
square
#9D2CA7 #A7602C #36A72C #2C74A7
split-complementary
#9D2CA7 #74A72C #2CA760
monochromatic
#421246 #6F1F77 #9D2CA7 #C243CD #D273DA

Accessibility & contrast

On white

6.27
#9D2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9D2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2CA7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2CA7#FFFFFF#000000##FFFFFF
##9D2CA71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#A04267
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2ca7;
/* rgb */ color: rgb(157, 44, 167);
/* oklch */ color: oklch(51.7% 0.203 324.4);
Tailwind
colors: {
  custom: {
    50: '#be71c2',
    500: '#9d2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ca7;
$custom-light: #be71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ca7",
  "rgb": {
    "r": 157,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 295.122,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.20309,
    "h": 324.4
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#9D2CA7
secondary
#74C26D
accent
#E24653
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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