#9C2EBA#9C2EBA

#9C2EBA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.217 H 317.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9C2EBA
RGBrgb(156, 46, 186)
HSLhsl(287, 60%, 45%)
HSVhsv(287, 75%, 73%)
CMYKcmyk(16.1%, 75.3%, 0%, 27.1%)
CIE-LABlab(42.11, 63.58, -51.64)
CIE-LCHlch(42.11, 81.91, 320.92°)
OKLaboklab(52.91% 0.1606 -0.1452)
OKLCHoklch(52.91% 0.217 317.9)
XYZxyz(23.5490, 12.5681, 47.6303)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2EBA #4CBA2E
analogous
#562EBA #9C2EBA #BA2E92
triadic
#9C2EBA #BA9C2E #2EBA9C
tetradic
#9C2EBA #BA562E #4CBA2E #2E92BA
square
#9C2EBA #BA562E #4CBA2E #2E92BA
split-complementary
#9C2EBA #92BA2E #2EBA56
monochromatic
#4A1658 #732289 #9C2EBA #B851D4 #CC82E0

Accessibility & contrast

On white

5.98
#9C2EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9C2EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2EBA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2EBA#FFFFFF#000000##FFFFFF
##9C2EBA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#9B4C72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9c2eba;
/* rgb */ color: rgb(156, 46, 186);
/* oklch */ color: oklch(52.9% 0.217 317.9);
Tailwind
colors: {
  custom: {
    50: '#bd73cf',
    500: '#9c2eba',
    950: '#000000',
  },
}
SCSS
$custom: #9c2eba;
$custom-light: #bd73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2eba",
  "rgb": {
    "r": 156,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 287.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52912,
    "c": 0.21651,
    "h": 317.9
  },
  "luminance": 0.12567
}

Semantic roles & 50–950 ramp

primary
#9C2EBA
secondary
#8BC97B
accent
#E34466
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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