#9B40DF#9B40DF

#9B40DF is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.231 H 306.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9B40DF
RGBrgb(155, 64, 223)
HSLhsl(274, 71%, 56%)
HSVhsv(274, 71%, 87%)
CMYKcmyk(30.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(46.93, 64.08, -65.24)
CIE-LCHlch(46.93, 91.45, 314.49°)
OKLaboklab(57.1% 0.1371 -0.1853)
OKLCHoklch(57.1% 0.231 306.5)
XYZxyz(28.6674, 15.9634, 71.3687)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40DF #84DF40
analogous
#4C40DF #9B40DF #DF40D3
triadic
#9B40DF #DF9B40 #40DF9B
tetradic
#9B40DF #DF4C40 #84DF40 #40D3DF
square
#9B40DF #DF4C40 #84DF40 #40D3DF
split-complementary
#9B40DF #D3DF40 #40DF4C
monochromatic
#5B188D #7D20C1 #9B40DF #B674E8 #D2A9F1

Accessibility & contrast

On white

5.01
#9B40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9B40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40DF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40DF#FFFFFF#000000##FFFFFF
##9B40DF1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#8F658C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b40df;
/* rgb */ color: rgb(155, 64, 223);
/* oklch */ color: oklch(57.1% 0.231 306.5);
Tailwind
colors: {
  custom: {
    50: '#be7dea',
    500: '#9b40df',
    950: '#000000',
  },
}
SCSS
$custom: #9b40df;
$custom-light: #be7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40df",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 274.34,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57101,
    "c": 0.2305,
    "h": 306.5
  },
  "luminance": 0.15963
}

Semantic roles & 50–950 ramp

primary
#9B40DF
secondary
#B9DE9D
accent
#EE3A87
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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