#9A42E1#9A42E1

#9A42E1 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.230 H 305.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9A42E1
RGBrgb(154, 66, 225)
HSLhsl(273, 73%, 57%)
HSVhsv(273, 71%, 88%)
CMYKcmyk(31.6%, 70.7%, 0%, 11.8%)
CIE-LABlab(47.24, 63.49, -65.87)
CIE-LCHlch(47.24, 91.49, 313.94°)
OKLaboklab(57.34% 0.1336 -0.1872)
OKLCHoklch(57.34% 0.23 305.5)
XYZxyz(28.8622, 16.2029, 72.8265)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42E1 #89E142
analogous
#4B42E1 #9A42E1 #E142D8
triadic
#9A42E1 #E19A42 #42E19A
tetradic
#9A42E1 #E14B42 #89E142 #42D8E1
square
#9A42E1 #E14B42 #89E142 #42D8E1
split-complementary
#9A42E1 #D8E142 #42E14B
monochromatic
#5B1792 #7C1FC6 #9A42E1 #B677E9 #D2ACF2

Accessibility & contrast

On white

4.95
#9A42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9A42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42E1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42E1#FFFFFF#000000##FFFFFF
##9A42E11.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#0070DE
Tritanopia (blue-blind)
#8D678D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9a42e1;
/* rgb */ color: rgb(154, 66, 225);
/* oklch */ color: oklch(57.3% 0.230 305.5);
Tailwind
colors: {
  custom: {
    50: '#bd7eeb',
    500: '#9a42e1',
    950: '#000000',
  },
}
SCSS
$custom: #9a42e1;
$custom-light: #bd7eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42e1",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 273.208,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.22996,
    "h": 305.5
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

primary
#9A42E1
secondary
#BCE09F
accent
#EF388A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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