#9A42D3#9A42D3

#9A42D3 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.216 H 308.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9A42D3
RGBrgb(154, 66, 211)
HSLhsl(276, 62%, 54%)
HSVhsv(276, 69%, 83%)
CMYKcmyk(27%, 68.7%, 0%, 17.3%)
CIE-LABlab(46.27, 60.39, -59.45)
CIE-LCHlch(46.27, 84.74, 315.45°)
OKLaboklab(56.35% 0.1355 -0.1683)
OKLCHoklch(56.35% 0.216 308.8)
XYZxyz(27.0301, 15.4701, 63.1775)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42D3 #7BD342
analogous
#5242D3 #9A42D3 #D342C4
triadic
#9A42D3 #D39A42 #42D39A
tetradic
#9A42D3 #D35242 #7BD342 #42C4D3
square
#9A42D3 #D35242 #7BD342 #42C4D3
split-complementary
#9A42D3 #C4D342 #42D352
monochromatic
#581D7D #7A29AF #9A42D3 #B574DF #CFA5EA

Accessibility & contrast

On white

5.13
#9A42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9A42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42D3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42D3#FFFFFF#000000##FFFFFF
##9A42D31.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#236FD0
Tritanopia (blue-blind)
#916286
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9a42d3;
/* rgb */ color: rgb(154, 66, 211);
/* oklch */ color: oklch(56.3% 0.216 308.8);
Tailwind
colors: {
  custom: {
    50: '#bc7de1',
    500: '#9a42d3',
    950: '#000000',
  },
}
SCSS
$custom: #9a42d3;
$custom-light: #bc7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42d3",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 276.414,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56345,
    "c": 0.21607,
    "h": 308.8
  },
  "luminance": 0.1547
}

Semantic roles & 50–950 ramp

primary
#9A42D3
secondary
#B2D79A
accent
#E54282
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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