#9B40CA#9B40CA

#9B40CA is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.210 H 311.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9B40CA
RGBrgb(155, 64, 202)
HSLhsl(280, 57%, 52%)
HSVhsv(280, 68%, 79%)
CMYKcmyk(23.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(45.50, 59.54, -55.51)
CIE-LCHlch(45.50, 81.40, 317.01°)
OKLaboklab(55.63% 0.1398 -0.1567)
OKLCHoklch(55.63% 0.21 311.7)
XYZxyz(26.0097, 14.9003, 57.3716)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CA #6FCA40
analogous
#5640CA #9B40CA #CA40B4
triadic
#9B40CA #CA9B40 #40CA9B
tetradic
#9B40CA #CA5640 #6FCA40 #40B4CA
square
#9B40CA #CA5640 #6FCA40 #40B4CA
split-complementary
#9B40CA #B4CA40 #40CA56
monochromatic
#551F70 #792CA0 #9B40CA #B470D7 #CDA0E5

Accessibility & contrast

On white

5.28
#9B40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9B40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CA#FFFFFF#000000##FFFFFF
##9B40CA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#306DC7
Tritanopia (blue-blind)
#955D80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b40ca;
/* rgb */ color: rgb(155, 64, 202);
/* oklch */ color: oklch(55.6% 0.210 311.7);
Tailwind
colors: {
  custom: {
    50: '#bd7cdb',
    500: '#9b40ca',
    950: '#000000',
  },
}
SCSS
$custom: #9b40ca;
$custom-light: #bd7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40ca",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 279.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5563,
    "c": 0.21001,
    "h": 311.7
  },
  "luminance": 0.149
}

Semantic roles & 50–950 ramp

primary
#9B40CA
secondary
#A9D195
accent
#E0487C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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