#9A42CA#9A42CA

#9A42CA is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.207 H 311.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9A42CA
RGBrgb(154, 66, 202)
HSLhsl(279, 56%, 53%)
HSVhsv(279, 67%, 79%)
CMYKcmyk(23.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(45.68, 58.45, -55.23)
CIE-LCHlch(45.68, 80.41, 316.62°)
OKLaboklab(55.73% 0.1364 -0.1559)
OKLCHoklch(55.73% 0.207 311.2)
XYZxyz(25.9333, 15.0313, 57.4009)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42CA #72CA42
analogous
#5642CA #9A42CA #CA42B6
triadic
#9A42CA #CA9A42 #42CA9A
tetradic
#9A42CA #CA5642 #72CA42 #42B6CA
square
#9A42CA #CA5642 #72CA42 #42B6CA
split-complementary
#9A42CA #B6CA42 #42CA56
monochromatic
#552072 #782DA2 #9A42CA #B472D7 #CDA2E5

Accessibility & contrast

On white

5.24
#9A42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9A42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42CA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42CA#FFFFFF#000000##FFFFFF
##9A42CA1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#316EC7
Tritanopia (blue-blind)
#945E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a42ca;
/* rgb */ color: rgb(154, 66, 202);
/* oklch */ color: oklch(55.7% 0.207 311.2);
Tailwind
colors: {
  custom: {
    50: '#bc7ddb',
    500: '#9a42ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a42ca;
$custom-light: #bc7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42ca",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 278.824,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55731,
    "c": 0.20715,
    "h": 311.2
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

primary
#9A42CA
secondary
#ABD196
accent
#DF487E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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