#9B42CB#9B42CB

#9B42CB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.9% C 0.208 H 311.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9B42CB
RGBrgb(155, 66, 203)
HSLhsl(279, 57%, 53%)
HSVhsv(279, 67%, 80%)
CMYKcmyk(23.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(45.88, 58.88, -55.48)
CIE-LCHlch(45.88, 80.89, 316.70°)
OKLaboklab(55.92% 0.1376 -0.1566)
OKLCHoklch(55.92% 0.208 311.3)
XYZxyz(26.2433, 15.1774, 58.0354)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42CB #72CB42
analogous
#5642CB #9B42CB #CB42B6
triadic
#9B42CB #CB9B42 #42CB9B
tetradic
#9B42CB #CB5642 #72CB42 #42B6CB
square
#9B42CB #CB5642 #72CB42 #42B6CB
split-complementary
#9B42CB #B6CB42 #42CB56
monochromatic
#562073 #7A2DA3 #9B42CB #B472D8 #CEA2E5

Accessibility & contrast

On white

5.20
#9B42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9B42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42CB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42CB#FFFFFF#000000##FFFFFF
##9B42CB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#316EC8
Tritanopia (blue-blind)
#955E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b42cb;
/* rgb */ color: rgb(155, 66, 203);
/* oklch */ color: oklch(55.9% 0.208 311.3);
Tailwind
colors: {
  custom: {
    50: '#bd7ddc',
    500: '#9b42cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b42cb;
$custom-light: #bd7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42cb",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 278.978,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55922,
    "c": 0.20847,
    "h": 311.3
  },
  "luminance": 0.15177
}

Semantic roles & 50–950 ramp

primary
#9B42CB
secondary
#ACD297
accent
#E0487D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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