#9542DC#9542DC

#9542DC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.224 H 304.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9542DC
RGBrgb(149, 66, 220)
HSLhsl(272, 69%, 56%)
HSVhsv(272, 70%, 86%)
CMYKcmyk(32.3%, 70%, 0%, 13.7%)
CIE-LABlab(46.25, 61.41, -64.66)
CIE-LCHlch(46.25, 89.18, 313.52°)
OKLaboklab(56.39% 0.1277 -0.1838)
OKLCHoklch(56.39% 0.224 304.8)
XYZxyz(27.2580, 15.4534, 69.2431)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542DC #89DC42
analogous
#4842DC #9542DC #DC42D6
triadic
#9542DC #DC9542 #42DC95
tetradic
#9542DC #DC4842 #89DC42 #42D6DC
square
#9542DC #DC4842 #89DC42 #42D6DC
split-complementary
#9542DC #D6DC42 #42DC48
monochromatic
#561A8A #7623BE #9542DC #B276E6 #CFA9EF

Accessibility & contrast

On white

5.13
#9542DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9542DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542DC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542DC#FFFFFF#000000##FFFFFF
##9542DC1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#88668B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9542dc;
/* rgb */ color: rgb(149, 66, 220);
/* oklch */ color: oklch(56.4% 0.224 304.8);
Tailwind
colors: {
  custom: {
    50: '#ba7de8',
    500: '#9542dc',
    950: '#000000',
  },
}
SCSS
$custom: #9542dc;
$custom-light: #ba7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9542dc",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 272.338,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56388,
    "c": 0.22382,
    "h": 304.8
  },
  "luminance": 0.15453
}

Semantic roles & 50–950 ramp

primary
#9542DC
secondary
#BADD9D
accent
#EC3C8D
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542DC

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

Preview Lab → · Contrast checker → · Palette generator →

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