#9A42A8#9A42A8

#9A42A8 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.6% C 0.174 H 322.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9A42A8
RGBrgb(154, 66, 168)
HSLhsl(292, 44%, 46%)
HSVhsv(292, 61%, 66%)
CMYKcmyk(8.3%, 60.7%, 0%, 34.1%)
CIE-LABlab(43.65, 51.48, -38.57)
CIE-LCHlch(43.65, 64.33, 323.16°)
OKLaboklab(53.61% 0.1371 -0.1072)
OKLCHoklch(53.61% 0.174 322)
XYZxyz(22.3418, 13.5947, 38.4854)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42A8 #50A842
analogous
#6742A8 #9A42A8 #A84283
triadic
#9A42A8 #A89A42 #42A89A
tetradic
#9A42A8 #A86742 #50A842 #4283A8
square
#9A42A8 #A86742 #50A842 #4283A8
split-complementary
#9A42A8 #83A842 #42A867
monochromatic
#491F50 #72317C #9A42A8 #B665C2 #CA91D4

Accessibility & contrast

On white

5.65
#9A42A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9A42A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42A8
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42A8#FFFFFF#000000##FFFFFF
##9A42A81.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AB
Deuteranopia (green-blind)
#4E6BA5
Tritanopia (blue-blind)
#9C516F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a42a8;
/* rgb */ color: rgb(154, 66, 168);
/* oklch */ color: oklch(53.6% 0.174 322.0);
Tailwind
colors: {
  custom: {
    50: '#ba7cc2',
    500: '#9a42a8',
    950: '#000000',
  },
}
SCSS
$custom: #9a42a8;
$custom-light: #ba7cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42a8",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 291.765,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53612,
    "c": 0.17402,
    "h": 322
  },
  "luminance": 0.13594
}

Semantic roles & 50–950 ramp

primary
#9A42A8
secondary
#8FBF87
accent
#D35466
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9A42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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