#9542CC#9542CC

#9542CC is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.208 H 308.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9542CC
RGBrgb(149, 66, 204)
HSLhsl(276, 58%, 53%)
HSVhsv(276, 68%, 80%)
CMYKcmyk(27%, 67.6%, 0%, 20%)
CIE-LABlab(45.15, 57.82, -57.27)
CIE-LCHlch(45.15, 81.38, 315.27°)
OKLaboklab(55.25% 0.1297 -0.1621)
OKLCHoklch(55.25% 0.208 308.7)
XYZxyz(25.2395, 14.6460, 58.6124)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542CC #79CC42
analogous
#5042CC #9542CC #CC42BE
triadic
#9542CC #CC9542 #42CC95
tetradic
#9542CC #CC5042 #79CC42 #42BECC
square
#9542CC #CC5042 #79CC42 #42BECC
split-complementary
#9542CC #BECC42 #42CC50
monochromatic
#521F74 #752CA4 #9542CC #B072D9 #CBA2E6

Accessibility & contrast

On white

5.34
#9542CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9542CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542CC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542CC#FFFFFF#000000##FFFFFF
##9542CC1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#266CC9
Tritanopia (blue-blind)
#8D6082
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9542cc;
/* rgb */ color: rgb(149, 66, 204);
/* oklch */ color: oklch(55.3% 0.208 308.7);
Tailwind
colors: {
  custom: {
    50: '#b87cdc',
    500: '#9542cc',
    950: '#000000',
  },
}
SCSS
$custom: #9542cc;
$custom-light: #b87cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9542cc",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 276.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55251,
    "c": 0.20762,
    "h": 308.7
  },
  "luminance": 0.14646
}

Semantic roles & 50–950 ramp

primary
#9542CC
secondary
#AFD397
accent
#E14784
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542CC

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

Preview Lab → · Contrast checker → · Palette generator →

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