#9542CF#9542CF

#9542CF is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.211 H 307.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9542CF
RGBrgb(149, 66, 207)
HSLhsl(275, 59%, 54%)
HSVhsv(275, 68%, 81%)
CMYKcmyk(28%, 68.1%, 0%, 18.8%)
CIE-LABlab(45.35, 58.49, -58.67)
CIE-LCHlch(45.35, 82.85, 314.91°)
OKLaboklab(55.46% 0.1294 -0.1662)
OKLCHoklch(55.46% 0.211 307.9)
XYZxyz(25.6028, 14.7914, 60.5256)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542CF #7CCF42
analogous
#4E42CF #9542CF #CF42C3
triadic
#9542CF #CF9542 #42CF95
tetradic
#9542CF #CF4E42 #7CCF42 #42C3CF
square
#9542CF #CF4E42 #7CCF42 #42C3CF
split-complementary
#9542CF #C3CF42 #42CF4E
monochromatic
#531F78 #752BA9 #9542CF #B073DB #CCA4E8

Accessibility & contrast

On white

5.31
#9542CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9542CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542CF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542CF#FFFFFF#000000##FFFFFF
##9542CF1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#216CCC
Tritanopia (blue-blind)
#8C6183
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9542cf;
/* rgb */ color: rgb(149, 66, 207);
/* oklch */ color: oklch(55.5% 0.211 307.9);
Tailwind
colors: {
  custom: {
    50: '#b97cde',
    500: '#9542cf',
    950: '#000000',
  },
}
SCSS
$custom: #9542cf;
$custom-light: #b97cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9542cf",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 275.319,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55459,
    "c": 0.21066,
    "h": 307.9
  },
  "luminance": 0.14791
}

Semantic roles & 50–950 ramp

primary
#9542CF
secondary
#B1D598
accent
#E34586
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542CF

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

Preview Lab → · Contrast checker → · Palette generator →

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