#9B40CF#9B40CF

#9B40CF is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.215 H 310.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9B40CF
RGBrgb(155, 64, 207)
HSLhsl(278, 60%, 53%)
HSVhsv(278, 69%, 81%)
CMYKcmyk(25.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(45.83, 60.61, -57.86)
CIE-LCHlch(45.83, 83.79, 316.33°)
OKLaboklab(55.97% 0.1393 -0.1636)
OKLCHoklch(55.97% 0.215 310.4)
XYZxyz(26.6113, 15.1409, 60.5400)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CF #74CF40
analogous
#5340CF #9B40CF #CF40BB
triadic
#9B40CF #CF9B40 #40CF9B
tetradic
#9B40CF #CF5340 #74CF40 #40BBCF
square
#9B40CF #CF5340 #74CF40 #40BBCF
split-complementary
#9B40CF #BBCF40 #40CF53
monochromatic
#561E77 #7A2AA8 #9B40CF #B571DB #CEA2E8

Accessibility & contrast

On white

5.21
#9B40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9B40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CF#FFFFFF#000000##FFFFFF
##9B40CF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#296ECC
Tritanopia (blue-blind)
#945F83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b40cf;
/* rgb */ color: rgb(155, 64, 207);
/* oklch */ color: oklch(56.0% 0.215 310.4);
Tailwind
colors: {
  custom: {
    50: '#bd7cde',
    500: '#9b40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9b40cf;
$custom-light: #bd7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40cf",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 278.182,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5597,
    "c": 0.21489,
    "h": 310.4
  },
  "luminance": 0.1514
}

Semantic roles & 50–950 ramp

primary
#9B40CF
secondary
#ADD497
accent
#E3457E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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