#9B40D2#9B40D2

#9B40D2 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.218 H 309.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9B40D2
RGBrgb(155, 64, 210)
HSLhsl(277, 62%, 54%)
HSVhsv(277, 70%, 82%)
CMYKcmyk(26.2%, 69.5%, 0%, 17.6%)
CIE-LABlab(46.03, 61.25, -59.26)
CIE-LCHlch(46.03, 85.23, 315.94°)
OKLaboklab(56.18% 0.139 -0.1677)
OKLCHoklch(56.18% 0.218 309.6)
XYZxyz(26.9815, 15.2890, 62.4900)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40D2 #77D240
analogous
#5240D2 #9B40D2 #D240C0
triadic
#9B40D2 #D29B40 #40D29B
tetradic
#9B40D2 #D25240 #77D240 #40C0D2
square
#9B40D2 #D25240 #77D240 #40C0D2
split-complementary
#9B40D2 #C0D240 #40D252
monochromatic
#571D7B #7B29AC #9B40D2 #B572DE #CFA3E9

Accessibility & contrast

On white

5.18
#9B40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9B40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40D2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40D2#FFFFFF#000000##FFFFFF
##9B40D21.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#246ECF
Tritanopia (blue-blind)
#936085
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b40d2;
/* rgb */ color: rgb(155, 64, 210);
/* oklch */ color: oklch(56.2% 0.218 309.6);
Tailwind
colors: {
  custom: {
    50: '#bd7ce1',
    500: '#9b40d2',
    950: '#000000',
  },
}
SCSS
$custom: #9b40d2;
$custom-light: #bd7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40d2",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 277.397,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56178,
    "c": 0.21781,
    "h": 309.6
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#9B40D2
secondary
#AFD698
accent
#E54380
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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