#9B42E3#9B42E3

#9B42E3 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.232 H 305.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9B42E3
RGBrgb(155, 66, 227)
HSLhsl(273, 74%, 57%)
HSVhsv(273, 71%, 89%)
CMYKcmyk(31.7%, 70.9%, 0%, 11%)
CIE-LABlab(47.51, 64.12, -66.56)
CIE-LCHlch(47.51, 92.43, 313.93°)
OKLaboklab(57.6% 0.1346 -0.1892)
OKLCHoklch(57.6% 0.232 305.4)
XYZxyz(29.3278, 16.4113, 74.2808)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42E3 #8AE342
analogous
#4B42E3 #9B42E3 #E342DA
triadic
#9B42E3 #E39B42 #42E39B
tetradic
#9B42E3 #E34B42 #8AE342 #42DAE3
square
#9B42E3 #E34B42 #8AE342 #42DAE3
split-complementary
#9B42E3 #DAE342 #42E34B
monochromatic
#5C1695 #7D1ECA #9B42E3 #B777EB #D3ADF3

Accessibility & contrast

On white

4.90
#9B42E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9B42E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42E3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42E3#FFFFFF#000000##FFFFFF
##9B42E31.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#8E688F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9b42e3;
/* rgb */ color: rgb(155, 66, 227);
/* oklch */ color: oklch(57.6% 0.232 305.4);
Tailwind
colors: {
  custom: {
    50: '#be7eed',
    500: '#9b42e3',
    950: '#000000',
  },
}
SCSS
$custom: #9b42e3;
$custom-light: #be7eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42e3",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 273.168,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57604,
    "c": 0.23216,
    "h": 305.4
  },
  "luminance": 0.16411
}

Semantic roles & 50–950 ramp

primary
#9B42E3
secondary
#BDE1A0
accent
#F1378A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42E3

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

Preview Lab → · Contrast checker → · Palette generator →

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