#9B40D4#9B40D4

#9B40D4 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.220 H 309.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9B40D4
RGBrgb(155, 64, 212)
HSLhsl(277, 63%, 54%)
HSVhsv(277, 70%, 83%)
CMYKcmyk(26.9%, 69.8%, 0%, 16.9%)
CIE-LABlab(46.16, 61.68, -60.19)
CIE-LCHlch(46.16, 86.18, 315.70°)
OKLaboklab(56.32% 0.1387 -0.1705)
OKLCHoklch(56.32% 0.22 309.1)
XYZxyz(27.2322, 15.3893, 63.8104)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40D4 #79D440
analogous
#5140D4 #9B40D4 #D440C3
triadic
#9B40D4 #D49B40 #40D49B
tetradic
#9B40D4 #D45140 #79D440 #40C3D4
square
#9B40D4 #D45140 #79D440 #40C3D4
split-complementary
#9B40D4 #C3D440 #40D451
monochromatic
#581C7D #7B27AF #9B40D4 #B572DF #CFA4EA

Accessibility & contrast

On white

5.15
#9B40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9B40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40D4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40D4#FFFFFF#000000##FFFFFF
##9B40D41.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#206FD1
Tritanopia (blue-blind)
#936186
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b40d4;
/* rgb */ color: rgb(155, 64, 212);
/* oklch */ color: oklch(56.3% 0.220 309.1);
Tailwind
colors: {
  custom: {
    50: '#bd7ce2',
    500: '#9b40d4',
    950: '#000000',
  },
}
SCSS
$custom: #9b40d4;
$custom-light: #bd7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40d4",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 276.892,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56317,
    "c": 0.21977,
    "h": 309.1
  },
  "luminance": 0.15389
}

Semantic roles & 50–950 ramp

primary
#9B40D4
secondary
#B1D798
accent
#E64281
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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