#9B42D7#9B42D7

#9B42D7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.220 H 308.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9B42D7
RGBrgb(155, 66, 215)
HSLhsl(276, 65%, 55%)
HSVhsv(276, 69%, 84%)
CMYKcmyk(27.9%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.67, 61.47, -61.08)
CIE-LCHlch(46.67, 86.66, 315.18°)
OKLaboklab(56.75% 0.1363 -0.1731)
OKLCHoklch(56.75% 0.22 308.2)
XYZxyz(27.7290, 15.7717, 65.8603)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42D7 #7ED742
analogous
#5042D7 #9B42D7 #D742C9
triadic
#9B42D7 #D79B42 #42D79B
tetradic
#9B42D7 #D75042 #7ED742 #42C9D7
square
#9B42D7 #D75042 #7ED742 #42C9D7
split-complementary
#9B42D7 #C9D742 #42D750
monochromatic
#591C83 #7C26B5 #9B42D7 #B675E2 #D0A7EC

Accessibility & contrast

On white

5.06
#9B42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9B42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42D7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42D7#FFFFFF#000000##FFFFFF
##9B42D71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#1D70D4
Tritanopia (blue-blind)
#926388
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b42d7;
/* rgb */ color: rgb(155, 66, 215);
/* oklch */ color: oklch(56.7% 0.220 308.2);
Tailwind
colors: {
  custom: {
    50: '#bd7de4',
    500: '#9b42d7',
    950: '#000000',
  },
}
SCSS
$custom: #9b42d7;
$custom-light: #bd7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42d7",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 275.839,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56746,
    "c": 0.22031,
    "h": 308.2
  },
  "luminance": 0.15771
}

Semantic roles & 50–950 ramp

primary
#9B42D7
secondary
#B4DA9B
accent
#E84084
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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