#9B40DA#9B40DA

#9B40DA is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.226 H 307.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9B40DA
RGBrgb(155, 64, 218)
HSLhsl(275, 68%, 55%)
HSVhsv(275, 71%, 85%)
CMYKcmyk(28.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(46.58, 62.98, -62.96)
CIE-LCHlch(46.58, 89.05, 315.01°)
OKLaboklab(56.74% 0.1379 -0.1786)
OKLCHoklch(56.74% 0.226 307.7)
XYZxyz(28.0032, 15.6977, 67.8708)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40DA #7FDA40
analogous
#4E40DA #9B40DA #DA40CC
triadic
#9B40DA #DA9B40 #40DA9B
tetradic
#9B40DA #DA4E40 #7FDA40 #40CCDA
square
#9B40DA #DA4E40 #7FDA40 #40CCDA
split-complementary
#9B40DA #CCDA40 #40DA4E
monochromatic
#5A1A86 #7C24B9 #9B40DA #B673E4 #D1A7EE

Accessibility & contrast

On white

5.07
#9B40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9B40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40DA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40DA#FFFFFF#000000##FFFFFF
##9B40DA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#0F6FD7
Tritanopia (blue-blind)
#916389
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9b40da;
/* rgb */ color: rgb(155, 64, 218);
/* oklch */ color: oklch(56.7% 0.226 307.7);
Tailwind
colors: {
  custom: {
    50: '#bd7ce6',
    500: '#9b40da',
    950: '#000000',
  },
}
SCSS
$custom: #9b40da;
$custom-light: #bd7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40da",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 275.455,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56741,
    "c": 0.22562,
    "h": 307.7
  },
  "luminance": 0.15697
}

Semantic roles & 50–950 ramp

primary
#9B40DA
secondary
#B5DB9B
accent
#EA3D84
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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