#9B42CA#9B42CA

#9B42CA is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.207 H 311.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9B42CA
RGBrgb(155, 66, 202)
HSLhsl(279, 56%, 53%)
HSVhsv(279, 67%, 79%)
CMYKcmyk(23.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(45.81, 58.66, -55.00)
CIE-LCHlch(45.81, 80.42, 316.84°)
OKLaboklab(55.86% 0.1377 -0.1552)
OKLCHoklch(55.86% 0.207 311.6)
XYZxyz(26.1245, 15.1299, 57.4098)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42CA #71CA42
analogous
#5742CA #9B42CA #CA42B5
triadic
#9B42CA #CA9B42 #42CA9B
tetradic
#9B42CA #CA5742 #71CA42 #42B5CA
square
#9B42CA #CA5742 #71CA42 #42B5CA
split-complementary
#9B42CA #B5CA42 #42CA57
monochromatic
#552072 #792DA2 #9B42CA #B472D7 #CEA2E5

Accessibility & contrast

On white

5.22
#9B42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9B42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42CA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42CA#FFFFFF#000000##FFFFFF
##9B42CA1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#336EC7
Tritanopia (blue-blind)
#955E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b42ca;
/* rgb */ color: rgb(155, 66, 202);
/* oklch */ color: oklch(55.9% 0.207 311.6);
Tailwind
colors: {
  custom: {
    50: '#bc7ddb',
    500: '#9b42ca',
    950: '#000000',
  },
}
SCSS
$custom: #9b42ca;
$custom-light: #bc7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42ca",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 279.265,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.20748,
    "h": 311.6
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#9B42CA
secondary
#ABD196
accent
#DF487D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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