#9542DD#9542DD

#9542DD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.225 H 304.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9542DD
RGBrgb(149, 66, 221)
HSLhsl(272, 70%, 56%)
HSVhsv(272, 70%, 87%)
CMYKcmyk(32.6%, 70.1%, 0%, 13.3%)
CIE-LABlab(46.32, 61.64, -65.12)
CIE-LCHlch(46.32, 89.66, 313.43°)
OKLaboklab(56.46% 0.1275 -0.1851)
OKLCHoklch(56.46% 0.225 304.6)
XYZxyz(27.3908, 15.5066, 69.9427)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542DD #8ADD42
analogous
#4842DD #9542DD #DD42D8
triadic
#9542DD #DD9542 #42DD95
tetradic
#9542DD #DD4842 #8ADD42 #42D8DD
square
#9542DD #DD4842 #8ADD42 #42D8DD
split-complementary
#9542DD #D8DD42 #42DD48
monochromatic
#56198C #7622BF #9542DD #B276E6 #CFAAF0

Accessibility & contrast

On white

5.12
#9542DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9542DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542DD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542DD#FFFFFF#000000##FFFFFF
##9542DD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE2
Deuteranopia (green-blind)
#006EDA
Tritanopia (blue-blind)
#87668B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9542dd;
/* rgb */ color: rgb(149, 66, 221);
/* oklch */ color: oklch(56.5% 0.225 304.6);
Tailwind
colors: {
  custom: {
    50: '#ba7de8',
    500: '#9542dd',
    950: '#000000',
  },
}
SCSS
$custom: #9542dd;
$custom-light: #ba7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9542dd",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 272.129,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56461,
    "c": 0.22483,
    "h": 304.6
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#9542DD
secondary
#BBDD9D
accent
#EC3B8E
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9542DD

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

Preview Lab → · Contrast checker → · Palette generator →

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