#9542D5#9542D5

#9542D5 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.217 H 306.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9542D5
RGBrgb(149, 66, 213)
HSLhsl(274, 64%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(30%, 69%, 0%, 16.5%)
CIE-LABlab(45.76, 59.83, -61.46)
CIE-LCHlch(45.76, 85.77, 314.23°)
OKLaboklab(55.88% 0.1287 -0.1744)
OKLCHoklch(55.88% 0.217 306.4)
XYZxyz(26.3503, 15.0904, 64.4625)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D5 #82D542
analogous
#4C42D5 #9542D5 #D542CB
triadic
#9542D5 #D59542 #42D595
tetradic
#9542D5 #D54C42 #82D542 #42CBD5
square
#9542D5 #D54C42 #82D542 #42CBD5
split-complementary
#9542D5 #CBD542 #42D54C
monochromatic
#551C80 #7628B2 #9542D5 #B174E0 #CDA6EB

Accessibility & contrast

On white

5.23
#9542D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9542D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D5#FFFFFF#000000##FFFFFF
##9542D51.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#116DD2
Tritanopia (blue-blind)
#8A6387
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d5;
/* rgb */ color: rgb(149, 66, 213);
/* oklch */ color: oklch(55.9% 0.217 306.4);
Tailwind
colors: {
  custom: {
    50: '#b97de3',
    500: '#9542d5',
    950: '#000000',
  },
}
SCSS
$custom: #9542d5;
$custom-light: #b97de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d5",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 273.878,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55883,
    "c": 0.21673,
    "h": 306.4
  },
  "luminance": 0.1509
}

Semantic roles & 50–950 ramp

primary
#9542D5
secondary
#B5D89A
accent
#E74189
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9542D5

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

Preview Lab → · Contrast checker → · Palette generator →

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