#9542E2#9542E2

#9542E2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.230 H 303.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9542E2
RGBrgb(149, 66, 226)
HSLhsl(271, 73%, 57%)
HSVhsv(271, 71%, 89%)
CMYKcmyk(34.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(46.68, 62.78, -67.38)
CIE-LCHlch(46.68, 92.09, 312.98°)
OKLaboklab(56.83% 0.1267 -0.1918)
OKLCHoklch(56.83% 0.23 303.5)
XYZxyz(28.0669, 15.7770, 73.5034)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542E2 #8FE242
analogous
#4542E2 #9542E2 #E242DF
triadic
#9542E2 #E29542 #42E295
tetradic
#9542E2 #E24542 #8FE242 #42DFE2
square
#9542E2 #E24542 #8FE242 #42DFE2
split-complementary
#9542E2 #DFE242 #42E245
monochromatic
#571793 #771FC8 #9542E2 #B377EA #D1ACF2

Accessibility & contrast

On white

5.05
#9542E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9542E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542E2#FFFFFF#000000##FFFFFF
##9542E21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#86688E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9542e2;
/* rgb */ color: rgb(149, 66, 226);
/* oklch */ color: oklch(56.8% 0.230 303.5);
Tailwind
colors: {
  custom: {
    50: '#ba7dec',
    500: '#9542e2',
    950: '#000000',
  },
}
SCSS
$custom: #9542e2;
$custom-light: #ba7dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9542e2",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 271.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5683,
    "c": 0.22987,
    "h": 303.5
  },
  "luminance": 0.15777
}

Semantic roles & 50–950 ramp

primary
#9542E2
secondary
#BFE09F
accent
#F03890
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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