#9B2EC7#9B2EC7

#9B2EC7 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.227 H 313.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9B2EC7
RGBrgb(155, 46, 199)
HSLhsl(283, 62%, 48%)
HSVhsv(283, 77%, 78%)
CMYKcmyk(22.1%, 76.9%, 0%, 22%)
CIE-LABlab(42.83, 65.92, -58.07)
CIE-LCHlch(42.83, 87.85, 318.62°)
OKLaboklab(53.68% 0.1574 -0.1641)
OKLCHoklch(53.68% 0.227 313.8)
XYZxyz(24.8016, 13.0469, 55.2336)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2EC7 #5AC72E
analogous
#4E2EC7 #9B2EC7 #C72EA6
triadic
#9B2EC7 #C79B2E #2EC79B
tetradic
#9B2EC7 #C74E2E #5AC72E #2EA6C7
square
#9B2EC7 #C74E2E #5AC72E #2EA6C7
split-complementary
#9B2EC7 #A6C72E #2EC74E
monochromatic
#4E1764 #742395 #9B2EC7 #B459D9 #CB8BE4

Accessibility & contrast

On white

5.82
#9B2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9B2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2EC7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2EC7#FFFFFF#000000##FFFFFF
##9B2EC71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#1F68C4
Tritanopia (blue-blind)
#97527A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9b2ec7;
/* rgb */ color: rgb(155, 46, 199);
/* oklch */ color: oklch(53.7% 0.227 313.8);
Tailwind
colors: {
  custom: {
    50: '#bd73d9',
    500: '#9b2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #9b2ec7;
$custom-light: #bd73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2ec7",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 282.745,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53675,
    "c": 0.22742,
    "h": 313.8
  },
  "luminance": 0.13046
}

Semantic roles & 50–950 ramp

primary
#9B2EC7
secondary
#98CE83
accent
#E64271
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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