#9B42CF#9B42CF

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

Color values

HEX#9B42CF
RGBrgb(155, 66, 207)
HSLhsl(278, 59%, 54%)
HSVhsv(278, 68%, 81%)
CMYKcmyk(25.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.14, 59.73, -57.36)
CIE-LCHlch(46.14, 82.81, 316.16°)
OKLaboklab(56.19% 0.1372 -0.1622)
OKLCHoklch(56.19% 0.212 310.2)
XYZxyz(26.7261, 15.3706, 60.5783)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42CF #76CF42
analogous
#5442CF #9B42CF #CF42BD
triadic
#9B42CF #CF9B42 #42CF9B
tetradic
#9B42CF #CF5442 #76CF42 #42BDCF
square
#9B42CF #CF5442 #76CF42 #42BDCF
split-complementary
#9B42CF #BDCF42 #42CF54
monochromatic
#571F78 #7A2BA9 #9B42CF #B573DB #CFA4E8

Accessibility & contrast

On white

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

On black

4.07
#9B42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9B42CF#FFFFFF#000000##FFFFFF
##9B42CF1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2C6FCC
Tritanopia (blue-blind)
#946083
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b42cf;
/* rgb */ color: rgb(155, 66, 207);
/* oklch */ color: oklch(56.2% 0.212 310.2);
Tailwind
colors: {
  custom: {
    50: '#bd7dde',
    500: '#9b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #9b42cf;
$custom-light: #bd7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42cf",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 277.872,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56193,
    "c": 0.21241,
    "h": 310.2
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

primary
#9B42CF
secondary
#AED598
accent
#E3457F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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