#9A42CB#9A42CB

#9A42CB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.8% C 0.208 H 310.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9A42CB
RGBrgb(154, 66, 203)
HSLhsl(279, 57%, 53%)
HSVhsv(279, 67%, 80%)
CMYKcmyk(24.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(45.74, 58.66, -55.70)
CIE-LCHlch(45.74, 80.89, 316.48°)
OKLaboklab(55.8% 0.1363 -0.1573)
OKLCHoklch(55.8% 0.208 310.9)
XYZxyz(26.0521, 15.0789, 58.0265)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42CB #73CB42
analogous
#5542CB #9A42CB #CB42B7
triadic
#9A42CB #CB9A42 #42CB9A
tetradic
#9A42CB #CB5542 #73CB42 #42B7CB
square
#9A42CB #CB5542 #73CB42 #42B7CB
split-complementary
#9A42CB #B7CB42 #42CB55
monochromatic
#552073 #792DA3 #9A42CB #B472D8 #CDA2E5

Accessibility & contrast

On white

5.23
#9A42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9A42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42CB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42CB#FFFFFF#000000##FFFFFF
##9A42CB1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#306EC8
Tritanopia (blue-blind)
#945F81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a42cb;
/* rgb */ color: rgb(154, 66, 203);
/* oklch */ color: oklch(55.8% 0.208 310.9);
Tailwind
colors: {
  custom: {
    50: '#bc7ddc',
    500: '#9a42cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a42cb;
$custom-light: #bc7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42cb",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 278.54,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55798,
    "c": 0.20814,
    "h": 310.9
  },
  "luminance": 0.15078
}

Semantic roles & 50–950 ramp

primary
#9A42CB
secondary
#ACD297
accent
#E0487E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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