#9A42D9#9A42D9

#9A42D9 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.222 H 307.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9A42D9
RGBrgb(154, 66, 217)
HSLhsl(275, 67%, 55%)
HSVhsv(275, 70%, 85%)
CMYKcmyk(29%, 69.6%, 0%, 14.9%)
CIE-LABlab(46.68, 61.71, -62.22)
CIE-LCHlch(46.68, 87.64, 314.76°)
OKLaboklab(56.77% 0.1347 -0.1765)
OKLCHoklch(56.77% 0.222 307.4)
XYZxyz(27.7964, 15.7766, 67.2130)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42D9 #81D942
analogous
#4E42D9 #9A42D9 #D942CC
triadic
#9A42D9 #D99A42 #42D99A
tetradic
#9A42D9 #D94E42 #81D942 #42CCD9
square
#9A42D9 #D94E42 #81D942 #42CCD9
split-complementary
#9A42D9 #CCD942 #42D94E
monochromatic
#591B86 #7B25B9 #9A42D9 #B575E3 #D0A8ED

Accessibility & contrast

On white

5.05
#9A42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9A42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42D9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42D9#FFFFFF#000000##FFFFFF
##9A42D91.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#156FD6
Tritanopia (blue-blind)
#906489
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a42d9;
/* rgb */ color: rgb(154, 66, 217);
/* oklch */ color: oklch(56.8% 0.222 307.4);
Tailwind
colors: {
  custom: {
    50: '#bd7de6',
    500: '#9a42d9',
    950: '#000000',
  },
}
SCSS
$custom: #9a42d9;
$custom-light: #bd7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42d9",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 274.967,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.22202,
    "h": 307.4
  },
  "luminance": 0.15776
}

Semantic roles & 50–950 ramp

primary
#9A42D9
secondary
#B6DB9C
accent
#E93E86
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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