#9B26BA#9B26BA

#9B26BA is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.224 H 317.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9B26BA
RGBrgb(155, 38, 186)
HSLhsl(287, 66%, 44%)
HSVhsv(287, 80%, 73%)
CMYKcmyk(16.7%, 79.6%, 0%, 27.1%)
CIE-LABlab(41.06, 65.96, -53.34)
CIE-LCHlch(41.06, 84.83, 321.04°)
OKLaboklab(52.14% 0.166 -0.1502)
OKLCHoklch(52.14% 0.224 317.9)
XYZxyz(23.0723, 11.9010, 47.5267)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B26BA #45BA26
analogous
#5126BA #9B26BA #BA268F
triadic
#9B26BA #BA9B26 #26BA9B
tetradic
#9B26BA #BA5126 #45BA26 #268FBA
square
#9B26BA #BA5126 #45BA26 #268FBA
split-complementary
#9B26BA #8FBA26 #26BA51
monochromatic
#461154 #711C87 #9B26BA #BA44D9 #CD77E3

Accessibility & contrast

On white

6.21
#9B26BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9B26BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B26BA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B26BA#FFFFFF#000000##FFFFFF
##9B26BA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2C64B7
Tritanopia (blue-blind)
#9A4871
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b26ba;
/* rgb */ color: rgb(155, 38, 186);
/* oklch */ color: oklch(52.1% 0.224 317.9);
Tailwind
colors: {
  custom: {
    50: '#bd6fcf',
    500: '#9b26ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b26ba;
$custom-light: #bd6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b26ba",
  "rgb": {
    "r": 155,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 287.432,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52142,
    "c": 0.22385,
    "h": 317.9
  },
  "luminance": 0.119
}

Semantic roles & 50–950 ramp

primary
#9B26BA
secondary
#84CB71
accent
#E93F62
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B26BA

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

Preview Lab → · Contrast checker → · Palette generator →

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