#9542CB#9542CB

#9542CB is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.207 H 308.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9542CB
RGBrgb(149, 66, 203)
HSLhsl(276, 57%, 53%)
HSVhsv(276, 67%, 80%)
CMYKcmyk(26.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(45.08, 57.60, -56.80)
CIE-LCHlch(45.08, 80.90, 315.40°)
OKLaboklab(55.18% 0.1298 -0.1607)
OKLCHoklch(55.18% 0.207 308.9)
XYZxyz(25.1200, 14.5982, 57.9828)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542CB #78CB42
analogous
#5042CB #9542CB #CB42BD
triadic
#9542CB #CB9542 #42CB95
tetradic
#9542CB #CB5042 #78CB42 #42BDCB
square
#9542CB #CB5042 #78CB42 #42BDCB
split-complementary
#9542CB #BDCB42 #42CB50
monochromatic
#522073 #742DA3 #9542CB #B072D8 #CBA2E5

Accessibility & contrast

On white

5.36
#9542CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9542CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542CB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542CB#FFFFFF#000000##FFFFFF
##9542CB1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#286CC8
Tritanopia (blue-blind)
#8D5F81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9542cb;
/* rgb */ color: rgb(149, 66, 203);
/* oklch */ color: oklch(55.2% 0.207 308.9);
Tailwind
colors: {
  custom: {
    50: '#b87cdc',
    500: '#9542cb',
    950: '#000000',
  },
}
SCSS
$custom: #9542cb;
$custom-light: #b87cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9542cb",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 276.35,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55182,
    "c": 0.20661,
    "h": 308.9
  },
  "luminance": 0.14598
}

Semantic roles & 50–950 ramp

primary
#9542CB
secondary
#AED297
accent
#E04884
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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