#9B40CB#9B40CB

#9B40CB is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.211 H 311.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9B40CB
RGBrgb(155, 64, 203)
HSLhsl(279, 57%, 52%)
HSVhsv(279, 68%, 80%)
CMYKcmyk(23.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(45.56, 59.75, -55.98)
CIE-LCHlch(45.56, 81.88, 316.87°)
OKLaboklab(55.7% 0.1397 -0.1581)
OKLCHoklch(55.7% 0.211 311.5)
XYZxyz(26.1285, 14.9478, 57.9971)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CB #70CB40
analogous
#5640CB #9B40CB #CB40B5
triadic
#9B40CB #CB9B40 #40CB9B
tetradic
#9B40CB #CB5640 #70CB40 #40B5CB
square
#9B40CB #CB5640 #70CB40 #40B5CB
split-complementary
#9B40CB #B5CB40 #40CB56
monochromatic
#551F72 #792CA2 #9B40CB #B470D8 #CDA0E5

Accessibility & contrast

On white

5.26
#9B40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9B40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CB#FFFFFF#000000##FFFFFF
##9B40CB1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#2F6EC8
Tritanopia (blue-blind)
#955D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b40cb;
/* rgb */ color: rgb(155, 64, 203);
/* oklch */ color: oklch(55.7% 0.211 311.5);
Tailwind
colors: {
  custom: {
    50: '#bd7cdc',
    500: '#9b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b40cb;
$custom-light: #bd7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40cb",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 279.281,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55698,
    "c": 0.21099,
    "h": 311.5
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#9B40CB
secondary
#AAD295
accent
#E0477C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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