#9B42D2#9B42D2

#9B42D2 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.215 H 309.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9B42D2
RGBrgb(155, 66, 210)
HSLhsl(277, 62%, 54%)
HSVhsv(277, 69%, 82%)
CMYKcmyk(26.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(46.34, 60.38, -58.76)
CIE-LCHlch(46.34, 84.26, 315.78°)
OKLaboklab(56.4% 0.1369 -0.1663)
OKLCHoklch(56.4% 0.215 309.5)
XYZxyz(27.0963, 15.5187, 62.5283)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42D2 #79D242
analogous
#5342D2 #9B42D2 #D242C1
triadic
#9B42D2 #D29B42 #42D29B
tetradic
#9B42D2 #D25342 #79D242 #42C1D2
square
#9B42D2 #D25342 #79D242 #42C1D2
split-complementary
#9B42D2 #C1D242 #42D253
monochromatic
#581E7C #7B29AD #9B42D2 #B573DE #CFA5EA

Accessibility & contrast

On white

5.12
#9B42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9B42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42D2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42D2#FFFFFF#000000##FFFFFF
##9B42D21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#276FCF
Tritanopia (blue-blind)
#936185
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9b42d2;
/* rgb */ color: rgb(155, 66, 210);
/* oklch */ color: oklch(56.4% 0.215 309.5);
Tailwind
colors: {
  custom: {
    50: '#bd7de1',
    500: '#9b42d2',
    950: '#000000',
  },
}
SCSS
$custom: #9b42d2;
$custom-light: #bd7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42d2",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 277.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56398,
    "c": 0.21537,
    "h": 309.5
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#9B42D2
secondary
#B1D799
accent
#E54381
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9B42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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