#9D2BA7#9D2BA7

#9D2BA7 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.204 H 324.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9D2BA7
RGBrgb(157, 43, 167)
HSLhsl(295, 59%, 41%)
HSVhsv(295, 74%, 65%)
CMYKcmyk(6%, 74.3%, 0%, 34.5%)
CIE-LABlab(40.71, 61.34, -42.61)
CIE-LCHlch(40.71, 74.68, 325.21°)
OKLaboklab(51.57% 0.1661 -0.1187)
OKLCHoklch(51.57% 0.204 324.4)
XYZxyz(21.7430, 11.6872, 37.6624)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2BA7 #35A72B
analogous
#5F2BA7 #9D2BA7 #A72B73
triadic
#9D2BA7 #A79D2B #2BA79D
tetradic
#9D2BA7 #A75F2B #35A72B #2B73A7
square
#9D2BA7 #A75F2B #35A72B #2B73A7
split-complementary
#9D2BA7 #73A72B #2BA75F
monochromatic
#411246 #6F1E76 #9D2BA7 #C341CE #D272DB

Accessibility & contrast

On white

6.29
#9D2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9D2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2BA7
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2BA7#FFFFFF#000000##FFFFFF
##9D2BA71.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4365A4
Tritanopia (blue-blind)
#A04167
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2ba7;
/* rgb */ color: rgb(157, 43, 167);
/* oklch */ color: oklch(51.6% 0.204 324.4);
Tailwind
colors: {
  custom: {
    50: '#be71c2',
    500: '#9d2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ba7;
$custom-light: #be71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ba7",
  "rgb": {
    "r": 157,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 295.161,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51574,
    "c": 0.20416,
    "h": 324.4
  },
  "luminance": 0.11686
}

Semantic roles & 50–950 ramp

primary
#9D2BA7
secondary
#73C26C
accent
#E24652
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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