#9542DF#9542DF

#9542DF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.227 H 304.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9542DF
RGBrgb(149, 66, 223)
HSLhsl(272, 71%, 57%)
HSVhsv(272, 70%, 87%)
CMYKcmyk(33.2%, 70.4%, 0%, 12.5%)
CIE-LABlab(46.46, 62.10, -66.02)
CIE-LCHlch(46.46, 90.64, 313.24°)
OKLaboklab(56.61% 0.1272 -0.1878)
OKLCHoklch(56.61% 0.227 304.1)
XYZxyz(27.6589, 15.6138, 71.3544)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542DF #8CDF42
analogous
#4742DF #9542DF #DF42DA
triadic
#9542DF #DF9542 #42DF95
tetradic
#9542DF #DF4742 #8CDF42 #42DADF
square
#9542DF #DF4742 #8CDF42 #42DADF
split-complementary
#9542DF #DADF42 #42DF47
monochromatic
#57188E #7721C3 #9542DF #B276E8 #D0ABF1

Accessibility & contrast

On white

5.09
#9542DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9542DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542DF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542DF#FFFFFF#000000##FFFFFF
##9542DF1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#87678C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9542df;
/* rgb */ color: rgb(149, 66, 223);
/* oklch */ color: oklch(56.6% 0.227 304.1);
Tailwind
colors: {
  custom: {
    50: '#ba7dea',
    500: '#9542df',
    950: '#000000',
  },
}
SCSS
$custom: #9542df;
$custom-light: #ba7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9542df",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 271.72,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.22685,
    "h": 304.1
  },
  "luminance": 0.15614
}

Semantic roles & 50–950 ramp

primary
#9542DF
secondary
#BDDF9E
accent
#EE3A8F
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542DF

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

Preview Lab → · Contrast checker → · Palette generator →

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