#9A42BF#9A42BF

#9A42BF is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.196 H 314.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9A42BF
RGBrgb(154, 66, 191)
HSLhsl(282, 49%, 50%)
HSVhsv(282, 65%, 75%)
CMYKcmyk(19.4%, 65.4%, 0%, 25.1%)
CIE-LABlab(44.98, 56.12, -49.96)
CIE-LCHlch(44.98, 75.14, 318.32°)
OKLaboklab(55.01% 0.1371 -0.1405)
OKLCHoklch(55.01% 0.196 314.3)
XYZxyz(24.6770, 14.5288, 50.7845)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42BF #67BF42
analogous
#5B42BF #9A42BF #BF42A5
triadic
#9A42BF #BF9A42 #42BF9A
tetradic
#9A42BF #BF5B42 #67BF42 #42A5BF
square
#9A42BF #BF5B42 #67BF42 #42A5BF
split-complementary
#9A42BF #A5BF42 #42BF5B
monochromatic
#512265 #763292 #9A42BF #B270CE #CB9DDE

Accessibility & contrast

On white

5.38
#9A42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9A42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42BF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42BF#FFFFFF#000000##FFFFFF
##9A42BF1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C3
Deuteranopia (green-blind)
#3D6DBC
Tritanopia (blue-blind)
#975A7B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a42bf;
/* rgb */ color: rgb(154, 66, 191);
/* oklch */ color: oklch(55.0% 0.196 314.3);
Tailwind
colors: {
  custom: {
    50: '#bb7cd3',
    500: '#9a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #9a42bf;
$custom-light: #bb7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42bf",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 282.24,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55009,
    "c": 0.1963,
    "h": 314.3
  },
  "luminance": 0.14528
}

Semantic roles & 50–950 ramp

primary
#9A42BF
secondary
#A3CA93
accent
#D94F78
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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