#9542B2#9542B2

#9542B2 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.5% C 0.181 H 316.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9542B2
RGBrgb(149, 66, 178)
HSLhsl(284, 46%, 48%)
HSVhsv(284, 63%, 70%)
CMYKcmyk(16.3%, 62.9%, 0%, 30.2%)
CIE-LABlab(43.51, 52.24, -44.74)
CIE-LCHlch(43.51, 68.78, 319.42°)
OKLaboklab(53.55% 0.1312 -0.1254)
OKLCHoklch(53.55% 0.181 316.3)
XYZxyz(22.3773, 13.5012, 43.5381)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542B2 #5FB242
analogous
#5D42B2 #9542B2 #B24297
triadic
#9542B2 #B29542 #42B295
tetradic
#9542B2 #B25D42 #5FB242 #4297B2
square
#9542B2 #B25D42 #5FB242 #4297B2
split-complementary
#9542B2 #97B242 #42B25D
monochromatic
#4A2159 #703185 #9542B2 #AF6AC8 #C796D8

Accessibility & contrast

On white

5.68
#9542B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9542B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542B2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542B2#FFFFFF#000000##FFFFFF
##9542B21.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C62B5
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#935674
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9542b2;
/* rgb */ color: rgb(149, 66, 178);
/* oklch */ color: oklch(53.5% 0.181 316.3);
Tailwind
colors: {
  custom: {
    50: '#b77cc9',
    500: '#9542b2',
    950: '#000000',
  },
}
SCSS
$custom: #9542b2;
$custom-light: #b77cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9542b2",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 284.464,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53549,
    "c": 0.18144,
    "h": 316.3
  },
  "luminance": 0.135
}

Semantic roles & 50–950 ramp

primary
#9542B2
secondary
#9AC48C
accent
#D65274
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9542B2

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

Preview Lab → · Contrast checker → · Palette generator →

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