#9A42D6#9A42D6

#9A42D6 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.219 H 308.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9A42D6
RGBrgb(154, 66, 214)
HSLhsl(276, 64%, 55%)
HSVhsv(276, 69%, 84%)
CMYKcmyk(28%, 69.2%, 0%, 16.1%)
CIE-LABlab(46.47, 61.05, -60.84)
CIE-LCHlch(46.47, 86.19, 315.10°)
OKLaboklab(56.55% 0.1351 -0.1724)
OKLCHoklch(56.55% 0.219 308.1)
XYZxyz(27.4097, 15.6219, 65.1767)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42D6 #7ED642
analogous
#5042D6 #9A42D6 #D642C8
triadic
#9A42D6 #D69A42 #42D69A
tetradic
#9A42D6 #D65042 #7ED642 #42C8D6
square
#9A42D6 #D65042 #7ED642 #42C8D6
split-complementary
#9A42D6 #C8D642 #42D650
monochromatic
#581C82 #7B27B4 #9A42D6 #B574E1 #D0A7EC

Accessibility & contrast

On white

5.09
#9A42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9A42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42D6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42D6#FFFFFF#000000##FFFFFF
##9A42D61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#1D6FD3
Tritanopia (blue-blind)
#916387
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a42d6;
/* rgb */ color: rgb(154, 66, 214);
/* oklch */ color: oklch(56.6% 0.219 308.1);
Tailwind
colors: {
  custom: {
    50: '#bc7de3',
    500: '#9a42d6',
    950: '#000000',
  },
}
SCSS
$custom: #9a42d6;
$custom-light: #bc7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42d6",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 275.676,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56554,
    "c": 0.21904,
    "h": 308.1
  },
  "luminance": 0.15621
}

Semantic roles & 50–950 ramp

primary
#9A42D6
secondary
#B4D99B
accent
#E74084
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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