#9A42CE#9A42CE

#9A42CE is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.211 H 310.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9A42CE
RGBrgb(154, 66, 206)
HSLhsl(278, 59%, 53%)
HSVhsv(278, 68%, 81%)
CMYKcmyk(25.2%, 68%, 0%, 19.2%)
CIE-LABlab(45.94, 59.31, -57.11)
CIE-LCHlch(45.94, 82.34, 316.08°)
OKLaboklab(56% 0.136 -0.1615)
OKLCHoklch(56% 0.211 310.1)
XYZxyz(26.4131, 15.2232, 59.9275)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42CE #76CE42
analogous
#5442CE #9A42CE #CE42BC
triadic
#9A42CE #CE9A42 #42CE9A
tetradic
#9A42CE #CE5442 #76CE42 #42BCCE
square
#9A42CE #CE5442 #76CE42 #42BCCE
split-complementary
#9A42CE #BCCE42 #42CE54
monochromatic
#561F77 #792BA7 #9A42CE #B473DB #CEA3E7

Accessibility & contrast

On white

5.19
#9A42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9A42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42CE
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42CE#FFFFFF#000000##FFFFFF
##9A42CE1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#2C6ECB
Tritanopia (blue-blind)
#936083
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a42ce;
/* rgb */ color: rgb(154, 66, 206);
/* oklch */ color: oklch(56.0% 0.211 310.1);
Tailwind
colors: {
  custom: {
    50: '#bc7dde',
    500: '#9a42ce',
    950: '#000000',
  },
}
SCSS
$custom: #9a42ce;
$custom-light: #bc7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42ce",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 277.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56001,
    "c": 0.21111,
    "h": 310.1
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

primary
#9A42CE
secondary
#AED498
accent
#E24680
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42CE

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

Preview Lab → · Contrast checker → · Palette generator →

#9A42CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva