#9A42D5#9A42D5

#9A42D5 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.218 H 308.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9A42D5
RGBrgb(154, 66, 213)
HSLhsl(276, 64%, 55%)
HSVhsv(276, 69%, 84%)
CMYKcmyk(27.7%, 69%, 0%, 16.5%)
CIE-LABlab(46.41, 60.83, -60.38)
CIE-LCHlch(46.41, 85.71, 315.21°)
OKLaboklab(56.48% 0.1352 -0.171)
OKLCHoklch(56.48% 0.218 308.3)
XYZxyz(27.2824, 15.5710, 64.5062)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42D5 #7DD542
analogous
#5042D5 #9A42D5 #D542C7
triadic
#9A42D5 #D59A42 #42D59A
tetradic
#9A42D5 #D55042 #7DD542 #42C7D5
square
#9A42D5 #D55042 #7DD542 #42C7D5
split-complementary
#9A42D5 #C7D542 #42D550
monochromatic
#581C80 #7B28B2 #9A42D5 #B574E0 #D0A6EB

Accessibility & contrast

On white

5.10
#9A42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9A42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42D5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42D5#FFFFFF#000000##FFFFFF
##9A42D51.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a42d5;
/* rgb */ color: rgb(154, 66, 213);
/* oklch */ color: oklch(56.5% 0.218 308.3);
Tailwind
colors: {
  custom: {
    50: '#bc7de3',
    500: '#9a42d5',
    950: '#000000',
  },
}
SCSS
$custom: #9a42d5;
$custom-light: #bc7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42d5",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 275.918,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56484,
    "c": 0.21805,
    "h": 308.3
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#9A42D5
secondary
#B3D89A
accent
#E74184
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9A42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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