#9A42BE#9A42BE

#9A42BE is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.195 H 314.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9A42BE
RGBrgb(154, 66, 190)
HSLhsl(283, 49%, 50%)
HSVhsv(283, 65%, 75%)
CMYKcmyk(18.9%, 65.3%, 0%, 25.5%)
CIE-LABlab(44.92, 55.91, -49.48)
CIE-LCHlch(44.92, 74.66, 318.49°)
OKLaboklab(54.95% 0.1371 -0.1391)
OKLCHoklch(54.95% 0.195 314.6)
XYZxyz(24.5674, 14.4850, 50.2070)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42BE #66BE42
analogous
#5C42BE #9A42BE #BE42A4
triadic
#9A42BE #BE9A42 #42BE9A
tetradic
#9A42BE #BE5C42 #66BE42 #42A4BE
square
#9A42BE #BE5C42 #66BE42 #42A4BE
split-complementary
#9A42BE #A4BE42 #42BE5C
monochromatic
#502263 #753291 #9A42BE #B270CE #CB9DDD

Accessibility & contrast

On white

5.39
#9A42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9A42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42BE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42BE#FFFFFF#000000##FFFFFF
##9A42BE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0465C2
Deuteranopia (green-blind)
#3E6DBB
Tritanopia (blue-blind)
#975A7A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a42be;
/* rgb */ color: rgb(154, 66, 190);
/* oklch */ color: oklch(54.9% 0.195 314.6);
Tailwind
colors: {
  custom: {
    50: '#bb7cd2',
    500: '#9a42be',
    950: '#000000',
  },
}
SCSS
$custom: #9a42be;
$custom-light: #bb7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42be",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 282.581,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.19531,
    "h": 314.6
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

primary
#9A42BE
secondary
#A2CA92
accent
#D84F77
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9A42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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