#9542C8#9542C8

#9542C8 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.204 H 309.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9542C8
RGBrgb(149, 66, 200)
HSLhsl(277, 55%, 52%)
HSVhsv(277, 67%, 78%)
CMYKcmyk(25.5%, 67%, 0%, 21.6%)
CIE-LABlab(44.88, 56.94, -55.39)
CIE-LCHlch(44.88, 79.43, 315.79°)
OKLaboklab(54.98% 0.1301 -0.1566)
OKLCHoklch(54.98% 0.204 309.7)
XYZxyz(24.7659, 14.4566, 56.1181)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542C8 #75C842
analogous
#5242C8 #9542C8 #C842B8
triadic
#9542C8 #C89542 #42C895
tetradic
#9542C8 #C85242 #75C842 #42B8C8
square
#9542C8 #C85242 #75C842 #42B8C8
split-complementary
#9542C8 #B8C842 #42C852
monochromatic
#51206F #742E9F #9542C8 #B071D6 #CAA1E4

Accessibility & contrast

On white

5.40
#9542C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9542C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542C8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542C8#FFFFFF#000000##FFFFFF
##9542C81.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#2C6BC5
Tritanopia (blue-blind)
#8E5E80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9542c8;
/* rgb */ color: rgb(149, 66, 200);
/* oklch */ color: oklch(55.0% 0.204 309.7);
Tailwind
colors: {
  custom: {
    50: '#b87cd9',
    500: '#9542c8',
    950: '#000000',
  },
}
SCSS
$custom: #9542c8;
$custom-light: #b87cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9542c8",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 277.164,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54977,
    "c": 0.20357,
    "h": 309.7
  },
  "luminance": 0.14456
}

Semantic roles & 50–950 ramp

primary
#9542C8
secondary
#ACD096
accent
#DE4A82
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9542C8

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

Preview Lab → · Contrast checker → · Palette generator →

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