#9542E1#9542E1

#9542E1 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.8% C 0.229 H 303.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9542E1
RGBrgb(149, 66, 225)
HSLhsl(271, 73%, 57%)
HSVhsv(271, 71%, 88%)
CMYKcmyk(33.8%, 70.7%, 0%, 11.8%)
CIE-LABlab(46.61, 62.55, -66.93)
CIE-LCHlch(46.61, 91.61, 313.07°)
OKLaboklab(56.76% 0.1269 -0.1905)
OKLCHoklch(56.76% 0.229 303.7)
XYZxyz(27.9301, 15.7223, 72.7828)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542E1 #8EE142
analogous
#4642E1 #9542E1 #E142DD
triadic
#9542E1 #E19542 #42E195
tetradic
#9542E1 #E14642 #8EE142 #42DDE1
square
#9542E1 #E14642 #8EE142 #42DDE1
split-complementary
#9542E1 #DDE142 #42E146
monochromatic
#571792 #771FC6 #9542E1 #B377E9 #D0ACF2

Accessibility & contrast

On white

5.07
#9542E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9542E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542E1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542E1#FFFFFF#000000##FFFFFF
##9542E11.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#86688D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9542e1;
/* rgb */ color: rgb(149, 66, 225);
/* oklch */ color: oklch(56.8% 0.229 303.7);
Tailwind
colors: {
  custom: {
    50: '#ba7deb',
    500: '#9542e1',
    950: '#000000',
  },
}
SCSS
$custom: #9542e1;
$custom-light: #ba7deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9542e1",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 271.321,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.22887,
    "h": 303.7
  },
  "luminance": 0.15722
}

Semantic roles & 50–950 ramp

primary
#9542E1
secondary
#BEE09F
accent
#EF3890
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542E1

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

Preview Lab → · Contrast checker → · Palette generator →

#9542E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva