#9E26A8#9E26A8

#9E26A8 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.210 H 324.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9E26A8
RGBrgb(158, 38, 168)
HSLhsl(295, 63%, 40%)
HSVhsv(295, 77%, 66%)
CMYKcmyk(6%, 77.4%, 0%, 34.1%)
CIE-LABlab(40.38, 63.31, -43.73)
CIE-LCHlch(40.38, 76.94, 325.37°)
OKLaboklab(51.39% 0.1716 -0.1219)
OKLCHoklch(51.39% 0.21 324.6)
XYZxyz(21.8610, 11.4839, 38.1034)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E26A8 #30A826
analogous
#5D26A8 #9E26A8 #A82671
triadic
#9E26A8 #A89E26 #26A89E
tetradic
#9E26A8 #A85D26 #30A826 #2671A8
square
#9E26A8 #A85D26 #30A826 #2671A8
split-complementary
#9E26A8 #71A826 #26A85D
monochromatic
#400F44 #6F1B76 #9E26A8 #C639D2 #D56BDE

Accessibility & contrast

On white

6.37
#9E26A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9E26A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E26A8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E26A8#FFFFFF#000000##FFFFFF
##9E26A81.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4164A5
Tritanopia (blue-blind)
#A13F66
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e26a8;
/* rgb */ color: rgb(158, 38, 168);
/* oklch */ color: oklch(51.4% 0.210 324.6);
Tailwind
colors: {
  custom: {
    50: '#bf6fc2',
    500: '#9e26a8',
    950: '#000000',
  },
}
SCSS
$custom: #9e26a8;
$custom-light: #bf6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e26a8",
  "rgb": {
    "r": 158,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 295.385,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5139,
    "c": 0.21047,
    "h": 324.6
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#9E26A8
secondary
#6DC466
accent
#E6424E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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