#952FB7#952FB7

#952FB7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.210 H 316.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#952FB7
RGBrgb(149, 47, 183)
HSLhsl(285, 59%, 45%)
HSVhsv(285, 74%, 72%)
CMYKcmyk(18.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(40.96, 61.26, -51.77)
CIE-LCHlch(40.96, 80.20, 319.80°)
OKLaboklab(51.83% 0.1514 -0.1458)
OKLCHoklch(51.83% 0.21 316.1)
XYZxyz(21.9569, 11.8424, 45.9198)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#952FB7 #51B72F
analogous
#512FB7 #952FB7 #B72F95
triadic
#952FB7 #B7952F #2FB795
tetradic
#952FB7 #B7512F #51B72F #2F95B7
square
#952FB7 #B7512F #51B72F #2F95B7
split-complementary
#952FB7 #95B72F #2FB751
monochromatic
#461656 #6D2286 #952FB7 #B251D2 #C782DF

Accessibility & contrast

On white

6.23
#952FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#952FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #952FB7
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##952FB7#FFFFFF#000000##FFFFFF
##952FB71.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#2E63B4
Tritanopia (blue-blind)
#934C71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #952fb7;
/* rgb */ color: rgb(149, 47, 183);
/* oklch */ color: oklch(51.8% 0.210 316.1);
Tailwind
colors: {
  custom: {
    50: '#b872cd',
    500: '#952fb7',
    950: '#000000',
  },
}
SCSS
$custom: #952fb7;
$custom-light: #b872cd;
$custom-dark: #000000;
JSON
{
  "hex": "#952fb7",
  "rgb": {
    "r": 149,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 285,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51826,
    "c": 0.21023,
    "h": 316.1
  },
  "luminance": 0.11841
}

Semantic roles & 50–950 ramp

primary
#952FB7
secondary
#8DC87A
accent
#E2456D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #952FB7

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

Preview Lab → · Contrast checker → · Palette generator →

#952FB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva