#9542D3#9542D3

#9542D3 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.215 H 306.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9542D3
RGBrgb(149, 66, 211)
HSLhsl(274, 62%, 54%)
HSVhsv(274, 69%, 83%)
CMYKcmyk(29.4%, 68.7%, 0%, 17.3%)
CIE-LABlab(45.62, 59.38, -60.53)
CIE-LCHlch(45.62, 84.80, 314.45°)
OKLaboklab(55.74% 0.1289 -0.1717)
OKLCHoklch(55.74% 0.215 306.9)
XYZxyz(26.0980, 14.9894, 63.1338)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D3 #80D342
analogous
#4D42D3 #9542D3 #D342C9
triadic
#9542D3 #D39542 #42D395
tetradic
#9542D3 #D34D42 #80D342 #42C9D3
square
#9542D3 #D34D42 #80D342 #42C9D3
split-complementary
#9542D3 #C9D342 #42D34D
monochromatic
#541D7D #7629AF #9542D3 #B174DF #CDA5EA

Accessibility & contrast

On white

5.25
#9542D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9542D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D3
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D3#FFFFFF#000000##FFFFFF
##9542D31.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#176DD0
Tritanopia (blue-blind)
#8B6286
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d3;
/* rgb */ color: rgb(149, 66, 211);
/* oklch */ color: oklch(55.7% 0.215 306.9);
Tailwind
colors: {
  custom: {
    50: '#b97de1',
    500: '#9542d3',
    950: '#000000',
  },
}
SCSS
$custom: #9542d3;
$custom-light: #b97de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d3",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 274.345,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55741,
    "c": 0.21471,
    "h": 306.9
  },
  "luminance": 0.14989
}

Semantic roles & 50–950 ramp

primary
#9542D3
secondary
#B4D79A
accent
#E54288
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542D3

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

Preview Lab → · Contrast checker → · Palette generator →

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