#9B42E1#9B42E1

#9B42E1 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.5% C 0.230 H 305.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9B42E1
RGBrgb(155, 66, 225)
HSLhsl(274, 73%, 57%)
HSVhsv(274, 71%, 88%)
CMYKcmyk(31.1%, 70.7%, 0%, 11.8%)
CIE-LABlab(47.37, 63.68, -65.66)
CIE-LCHlch(47.37, 91.47, 314.12°)
OKLaboklab(57.46% 0.1349 -0.1865)
OKLCHoklch(57.46% 0.23 305.9)
XYZxyz(29.0534, 16.3015, 72.8355)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42E1 #88E142
analogous
#4C42E1 #9B42E1 #E142D8
triadic
#9B42E1 #E19B42 #42E19B
tetradic
#9B42E1 #E14C42 #88E142 #42D8E1
square
#9B42E1 #E14C42 #88E142 #42D8E1
split-complementary
#9B42E1 #D8E142 #42E14C
monochromatic
#5C1792 #7D1FC6 #9B42E1 #B777E9 #D3ACF2

Accessibility & contrast

On white

4.93
#9B42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9B42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42E1
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42E1#FFFFFF#000000##FFFFFF
##9B42E11.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#8F678D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9b42e1;
/* rgb */ color: rgb(155, 66, 225);
/* oklch */ color: oklch(57.5% 0.230 305.9);
Tailwind
colors: {
  custom: {
    50: '#be7eeb',
    500: '#9b42e1',
    950: '#000000',
  },
}
SCSS
$custom: #9b42e1;
$custom-light: #be7eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42e1",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 273.585,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57459,
    "c": 0.23019,
    "h": 305.9
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#9B42E1
secondary
#BCE09F
accent
#EF3889
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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