#9B40CE#9B40CE

#9B40CE is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.214 H 310.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9B40CE
RGBrgb(155, 64, 206)
HSLhsl(278, 59%, 53%)
HSVhsv(278, 69%, 81%)
CMYKcmyk(24.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(45.76, 60.39, -57.39)
CIE-LCHlch(45.76, 83.31, 316.46°)
OKLaboklab(55.9% 0.1394 -0.1622)
OKLCHoklch(55.9% 0.214 310.7)
XYZxyz(26.4894, 15.0922, 59.8982)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CE #73CE40
analogous
#5440CE #9B40CE #CE40BA
triadic
#9B40CE #CE9B40 #40CE9B
tetradic
#9B40CE #CE5440 #73CE40 #40BACE
square
#9B40CE #CE5440 #73CE40 #40BACE
split-complementary
#9B40CE #BACE40 #40CE54
monochromatic
#561E75 #7A2BA6 #9B40CE #B571DA #CEA1E7

Accessibility & contrast

On white

5.23
#9B40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9B40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CE
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CE#FFFFFF#000000##FFFFFF
##9B40CE1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#2B6ECB
Tritanopia (blue-blind)
#945E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b40ce;
/* rgb */ color: rgb(155, 64, 206);
/* oklch */ color: oklch(55.9% 0.214 310.7);
Tailwind
colors: {
  custom: {
    50: '#bd7cde',
    500: '#9b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #9b40ce;
$custom-light: #bd7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40ce",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 278.451,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55902,
    "c": 0.21391,
    "h": 310.7
  },
  "luminance": 0.15092
}

Semantic roles & 50–950 ramp

primary
#9B40CE
secondary
#ACD496
accent
#E2457E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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