#9B26DB#9B26DB

#9B26DB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.6% C 0.252 H 309.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9B26DB
RGBrgb(155, 38, 219)
HSLhsl(279, 72%, 50%)
HSVhsv(279, 83%, 86%)
CMYKcmyk(29.2%, 82.6%, 0%, 14.1%)
CIE-LABlab(43.46, 72.36, -68.58)
CIE-LCHlch(43.46, 99.70, 316.53°)
OKLaboklab(54.58% 0.1589 -0.195)
OKLCHoklch(54.58% 0.252 309.2)
XYZxyz(26.9942, 13.4698, 68.1820)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B26DB #66DB26
analogous
#4126DB #9B26DB #DB26C0
triadic
#9B26DB #DB9B26 #26DB9B
tetradic
#9B26DB #DB4126 #66DB26 #26C0DB
square
#9B26DB #DB4126 #66DB26 #26C0DB
split-complementary
#9B26DB #C0DB26 #26DB41
monochromatic
#511373 #761CA8 #9B26DB #B35AE4 #CB8FEC

Accessibility & contrast

On white

5.69
#9B26DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9B26DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B26DB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B26DB#FFFFFF#000000##FFFFFF
##9B26DB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#915884
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9b26db;
/* rgb */ color: rgb(155, 38, 219);
/* oklch */ color: oklch(54.6% 0.252 309.2);
Tailwind
colors: {
  custom: {
    50: '#bf71e7',
    500: '#9b26db',
    950: '#000000',
  },
}
SCSS
$custom: #9b26db;
$custom-light: #bf71e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b26db",
  "rgb": {
    "r": 155,
    "g": 38,
    "b": 219
  },
  "hsl": {
    "h": 278.785,
    "s": 71.542,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.2515,
    "h": 309.2
  },
  "luminance": 0.13469
}

Semantic roles & 50–950 ramp

primary
#9B26DB
secondary
#A3D786
accent
#EE3A79
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9B26DB

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

Preview Lab → · Contrast checker → · Palette generator →

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