#9A42CF#9A42CF

#9A42CF is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.212 H 309.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9A42CF
RGBrgb(154, 66, 207)
HSLhsl(277, 59%, 54%)
HSVhsv(277, 68%, 81%)
CMYKcmyk(25.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.00, 59.52, -57.58)
CIE-LCHlch(46.00, 82.82, 315.95°)
OKLaboklab(56.07% 0.1359 -0.1628)
OKLCHoklch(56.07% 0.212 309.8)
XYZxyz(26.5349, 15.2720, 60.5693)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42CF #77CF42
analogous
#5342CF #9A42CF #CF42BD
triadic
#9A42CF #CF9A42 #42CF9A
tetradic
#9A42CF #CF5342 #77CF42 #42BDCF
square
#9A42CF #CF5342 #77CF42 #42BDCF
split-complementary
#9A42CF #BDCF42 #42CF53
monochromatic
#561F78 #7A2BA9 #9A42CF #B473DB #CEA4E8

Accessibility & contrast

On white

5.18
#9A42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9A42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42CF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42CF#FFFFFF#000000##FFFFFF
##9A42CF1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2A6ECC
Tritanopia (blue-blind)
#936083
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a42cf;
/* rgb */ color: rgb(154, 66, 207);
/* oklch */ color: oklch(56.1% 0.212 309.8);
Tailwind
colors: {
  custom: {
    50: '#bc7dde',
    500: '#9a42cf',
    950: '#000000',
  },
}
SCSS
$custom: #9a42cf;
$custom-light: #bc7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42cf",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 277.447,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.2121,
    "h": 309.8
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#9A42CF
secondary
#AFD598
accent
#E34580
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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