#9542D2#9542D2

#9542D2 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.214 H 307.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9542D2
RGBrgb(149, 66, 210)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 69%, 82%)
CMYKcmyk(29%, 68.6%, 0%, 17.6%)
CIE-LABlab(45.55, 59.16, -60.07)
CIE-LCHlch(45.55, 84.31, 314.56°)
OKLaboklab(55.67% 0.1291 -0.1703)
OKLCHoklch(55.67% 0.214 307.2)
XYZxyz(25.9730, 14.9395, 62.4756)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D2 #7FD242
analogous
#4D42D2 #9542D2 #D242C7
triadic
#9542D2 #D29542 #42D295
tetradic
#9542D2 #D24D42 #7FD242 #42C7D2
square
#9542D2 #D24D42 #7FD242 #42C7D2
split-complementary
#9542D2 #C7D242 #42D24D
monochromatic
#541E7C #7529AD #9542D2 #B173DE #CCA5EA

Accessibility & contrast

On white

5.27
#9542D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9542D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D2#FFFFFF#000000##FFFFFF
##9542D21.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#1A6CCF
Tritanopia (blue-blind)
#8B6285
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d2;
/* rgb */ color: rgb(149, 66, 210);
/* oklch */ color: oklch(55.7% 0.214 307.2);
Tailwind
colors: {
  custom: {
    50: '#b97de1',
    500: '#9542d2',
    950: '#000000',
  },
}
SCSS
$custom: #9542d2;
$custom-light: #b97de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d2",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 274.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5567,
    "c": 0.2137,
    "h": 307.2
  },
  "luminance": 0.14939
}

Semantic roles & 50–950 ramp

primary
#9542D2
secondary
#B3D799
accent
#E54388
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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