#9B26A2#9B26A2

#9B26A2 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.204 H 325.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9B26A2
RGBrgb(155, 38, 162)
HSLhsl(297, 62%, 39%)
HSVhsv(297, 77%, 64%)
CMYKcmyk(4.3%, 76.5%, 0%, 36.5%)
CIE-LABlab(39.52, 61.66, -41.54)
CIE-LCHlch(39.52, 74.35, 326.03°)
OKLaboklab(50.56% 0.1686 -0.1156)
OKLCHoklch(50.56% 0.204 325.5)
XYZxyz(20.7318, 10.9648, 35.1999)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B26A2 #2DA226
analogous
#5D26A2 #9B26A2 #A2266B
triadic
#9B26A2 #A29B26 #26A29B
tetradic
#9B26A2 #A25D26 #2DA226 #266BA2
square
#9B26A2 #A25D26 #2DA226 #266BA2
split-complementary
#9B26A2 #6BA226 #26A25D
monochromatic
#3C0F3F #6C1A70 #9B26A2 #C735D0 #D567DB

Accessibility & contrast

On white

6.58
#9B26A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9B26A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B26A2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B26A2#FFFFFF#000000##FFFFFF
##9B26A21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#42629F
Tritanopia (blue-blind)
#9F3C63
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b26a2;
/* rgb */ color: rgb(155, 38, 162);
/* oklch */ color: oklch(50.6% 0.204 325.5);
Tailwind
colors: {
  custom: {
    50: '#bc6ebe',
    500: '#9b26a2',
    950: '#000000',
  },
}
SCSS
$custom: #9b26a2;
$custom-light: #bc6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#9b26a2",
  "rgb": {
    "r": 155,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 296.613,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50563,
    "c": 0.20441,
    "h": 325.5
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#9B26A2
secondary
#68C163
accent
#E5434C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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