#9542D1#9542D1

#9542D1 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.213 H 307.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9542D1
RGBrgb(149, 66, 209)
HSLhsl(275, 61%, 54%)
HSVhsv(275, 68%, 82%)
CMYKcmyk(28.7%, 68.4%, 0%, 18%)
CIE-LABlab(45.48, 58.93, -59.61)
CIE-LCHlch(45.48, 83.82, 314.67°)
OKLaboklab(55.6% 0.1292 -0.1689)
OKLCHoklch(55.6% 0.213 307.4)
XYZxyz(25.8488, 14.8898, 61.8215)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D1 #7ED142
analogous
#4E42D1 #9542D1 #D142C6
triadic
#9542D1 #D19542 #42D195
tetradic
#9542D1 #D14E42 #7ED142 #42C6D1
square
#9542D1 #D14E42 #7ED142 #42C6D1
split-complementary
#9542D1 #C6D142 #42D14E
monochromatic
#541E7B #752AAC #9542D1 #B173DD #CCA4E9

Accessibility & contrast

On white

5.28
#9542D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9542D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D1#FFFFFF#000000##FFFFFF
##9542D11.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#1C6CCE
Tritanopia (blue-blind)
#8B6285
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d1;
/* rgb */ color: rgb(149, 66, 209);
/* oklch */ color: oklch(55.6% 0.213 307.4);
Tailwind
colors: {
  custom: {
    50: '#b97de0',
    500: '#9542d1',
    950: '#000000',
  },
}
SCSS
$custom: #9542d1;
$custom-light: #b97de0;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d1",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 274.825,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.556,
    "c": 0.21268,
    "h": 307.4
  },
  "luminance": 0.14889
}

Semantic roles & 50–950 ramp

primary
#9542D1
secondary
#B2D699
accent
#E44487
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542D1

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

Preview Lab → · Contrast checker → · Palette generator →

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