#9542D6#9542D6

#9542D6 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.218 H 306.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9542D6
RGBrgb(149, 66, 214)
HSLhsl(274, 64%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(30.4%, 69.2%, 0%, 16.1%)
CIE-LABlab(45.83, 60.05, -61.92)
CIE-LCHlch(45.83, 86.26, 314.12°)
OKLaboklab(55.95% 0.1286 -0.1757)
OKLCHoklch(55.95% 0.218 306.2)
XYZxyz(26.4776, 15.1413, 65.1330)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D6 #83D642
analogous
#4B42D6 #9542D6 #D642CD
triadic
#9542D6 #D69542 #42D695
tetradic
#9542D6 #D64B42 #83D642 #42CDD6
square
#9542D6 #D64B42 #83D642 #42CDD6
split-complementary
#9542D6 #CDD642 #42D64B
monochromatic
#551C82 #7627B4 #9542D6 #B174E1 #CDA7EC

Accessibility & contrast

On white

5.21
#9542D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9542D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D6#FFFFFF#000000##FFFFFF
##9542D61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#0D6DD3
Tritanopia (blue-blind)
#8A6487
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d6;
/* rgb */ color: rgb(149, 66, 214);
/* oklch */ color: oklch(56.0% 0.218 306.2);
Tailwind
colors: {
  custom: {
    50: '#b97de3',
    500: '#9542d6',
    950: '#000000',
  },
}
SCSS
$custom: #9542d6;
$custom-light: #b97de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d6",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 273.649,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.21775,
    "h": 306.2
  },
  "luminance": 0.15141
}

Semantic roles & 50–950 ramp

primary
#9542D6
secondary
#B6D99B
accent
#E7408A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542D6

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

Preview Lab → · Contrast checker → · Palette generator →

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