#9542CD#9542CD

#9542CD is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.3% C 0.209 H 308.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9542CD
RGBrgb(149, 66, 205)
HSLhsl(276, 58%, 53%)
HSVhsv(276, 68%, 80%)
CMYKcmyk(27.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(45.21, 58.04, -57.74)
CIE-LCHlch(45.21, 81.87, 315.15°)
OKLaboklab(55.32% 0.1296 -0.1635)
OKLCHoklch(55.32% 0.209 308.4)
XYZxyz(25.3598, 14.6942, 59.2461)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542CD #7ACD42
analogous
#4F42CD #9542CD #CD42C0
triadic
#9542CD #CD9542 #42CD95
tetradic
#9542CD #CD4F42 #7ACD42 #42C0CD
square
#9542CD #CD4F42 #7ACD42 #42C0CD
split-complementary
#9542CD #C0CD42 #42CD4F
monochromatic
#531F76 #752CA6 #9542CD #B072DA #CBA3E7

Accessibility & contrast

On white

5.33
#9542CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9542CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542CD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542CD#FFFFFF#000000##FFFFFF
##9542CD1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#256CCA
Tritanopia (blue-blind)
#8C6082
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9542cd;
/* rgb */ color: rgb(149, 66, 205);
/* oklch */ color: oklch(55.3% 0.209 308.4);
Tailwind
colors: {
  custom: {
    50: '#b97cdd',
    500: '#9542cd',
    950: '#000000',
  },
}
SCSS
$custom: #9542cd;
$custom-light: #b97cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9542cd",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 275.827,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5532,
    "c": 0.20864,
    "h": 308.4
  },
  "luminance": 0.14694
}

Semantic roles & 50–950 ramp

primary
#9542CD
secondary
#B0D397
accent
#E14685
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542CD

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

Preview Lab → · Contrast checker → · Palette generator →

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