#9B40CD#9B40CD

#9B40CD is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.213 H 310.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9B40CD
RGBrgb(155, 64, 205)
HSLhsl(279, 59%, 53%)
HSVhsv(279, 69%, 80%)
CMYKcmyk(24.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.69, 60.18, -56.92)
CIE-LCHlch(45.69, 82.83, 316.59°)
OKLaboklab(55.83% 0.1395 -0.1609)
OKLCHoklch(55.83% 0.213 310.9)
XYZxyz(26.3683, 15.0438, 59.2605)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40CD #72CD40
analogous
#5440CD #9B40CD #CD40B9
triadic
#9B40CD #CD9B40 #40CD9B
tetradic
#9B40CD #CD5440 #72CD40 #40B9CD
square
#9B40CD #CD5440 #72CD40 #40B9CD
split-complementary
#9B40CD #B9CD40 #40CD54
monochromatic
#561E74 #7A2BA5 #9B40CD #B471DA #CEA1E6

Accessibility & contrast

On white

5.24
#9B40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9B40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40CD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40CD#FFFFFF#000000##FFFFFF
##9B40CD1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#2C6ECA
Tritanopia (blue-blind)
#955E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b40cd;
/* rgb */ color: rgb(155, 64, 205);
/* oklch */ color: oklch(55.8% 0.213 310.9);
Tailwind
colors: {
  custom: {
    50: '#bd7cdd',
    500: '#9b40cd',
    950: '#000000',
  },
}
SCSS
$custom: #9b40cd;
$custom-light: #bd7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40cd",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 278.723,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55834,
    "c": 0.21294,
    "h": 310.9
  },
  "luminance": 0.15043
}

Semantic roles & 50–950 ramp

primary
#9B40CD
secondary
#ACD396
accent
#E2467D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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