#9D2FBA#9D2FBA

#9D2FBA is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.216 H 318.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9D2FBA
RGBrgb(157, 47, 186)
HSLhsl(287, 60%, 46%)
HSVhsv(287, 75%, 73%)
CMYKcmyk(15.6%, 74.7%, 0%, 27.1%)
CIE-LABlab(42.38, 63.43, -51.19)
CIE-LCHlch(42.38, 81.51, 321.10°)
OKLaboklab(53.14% 0.1609 -0.1439)
OKLCHoklch(53.14% 0.216 318.2)
XYZxyz(23.7828, 12.7474, 47.6526)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FBA #4CBA2F
analogous
#572FBA #9D2FBA #BA2F91
triadic
#9D2FBA #BA9D2F #2FBA9D
tetradic
#9D2FBA #BA572F #4CBA2F #2F91BA
square
#9D2FBA #BA572F #4CBA2F #2F91BA
split-complementary
#9D2FBA #91BA2F #2FBA57
monochromatic
#4B1658 #742389 #9D2FBA #B953D3 #CD84E0

Accessibility & contrast

On white

5.92
#9D2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9D2FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FBA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FBA#FFFFFF#000000##FFFFFF
##9D2FBA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#3667B7
Tritanopia (blue-blind)
#9C4C73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d2fba;
/* rgb */ color: rgb(157, 47, 186);
/* oklch */ color: oklch(53.1% 0.216 318.2);
Tailwind
colors: {
  custom: {
    50: '#be73cf',
    500: '#9d2fba',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fba;
$custom-light: #be73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fba",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 287.482,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53137,
    "c": 0.21583,
    "h": 318.2
  },
  "luminance": 0.12746
}

Semantic roles & 50–950 ramp

primary
#9D2FBA
secondary
#8CC97C
accent
#E34566
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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