#9542D4#9542D4

#9542D4 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.216 H 306.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9542D4
RGBrgb(149, 66, 212)
HSLhsl(274, 63%, 55%)
HSVhsv(274, 69%, 83%)
CMYKcmyk(29.7%, 68.9%, 0%, 16.9%)
CIE-LABlab(45.69, 59.60, -61.00)
CIE-LCHlch(45.69, 85.28, 314.34°)
OKLaboklab(55.81% 0.1288 -0.173)
OKLCHoklch(55.81% 0.216 306.7)
XYZxyz(26.2238, 15.0397, 63.7961)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542D4 #81D442
analogous
#4C42D4 #9542D4 #D442CA
triadic
#9542D4 #D49542 #42D495
tetradic
#9542D4 #D44C42 #81D442 #42CAD4
square
#9542D4 #D44C42 #81D442 #42CAD4
split-complementary
#9542D4 #CAD442 #42D44C
monochromatic
#551D7F #7628B1 #9542D4 #B174DF #CDA6EB

Accessibility & contrast

On white

5.24
#9542D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9542D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542D4
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542D4#FFFFFF#000000##FFFFFF
##9542D41.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#146DD1
Tritanopia (blue-blind)
#8A6386
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9542d4;
/* rgb */ color: rgb(149, 66, 212);
/* oklch */ color: oklch(55.8% 0.216 306.7);
Tailwind
colors: {
  custom: {
    50: '#b97de2',
    500: '#9542d4',
    950: '#000000',
  },
}
SCSS
$custom: #9542d4;
$custom-light: #b97de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9542d4",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 274.11,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55812,
    "c": 0.21573,
    "h": 306.7
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#9542D4
secondary
#B5D89A
accent
#E64289
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542D4

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

Preview Lab → · Contrast checker → · Palette generator →

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