#9A42DD#9A42DD

#9A42DD is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.226 H 306.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9A42DD
RGBrgb(154, 66, 221)
HSLhsl(274, 70%, 56%)
HSVhsv(274, 70%, 87%)
CMYKcmyk(30.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(46.96, 62.60, -64.06)
CIE-LCHlch(46.96, 89.56, 314.34°)
OKLaboklab(57.05% 0.1342 -0.1819)
OKLCHoklch(57.05% 0.226 306.4)
XYZxyz(28.3230, 15.9872, 69.9863)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42DD #85DD42
analogous
#4D42DD #9A42DD #DD42D2
triadic
#9A42DD #DD9A42 #42DD9A
tetradic
#9A42DD #DD4D42 #85DD42 #42D2DD
square
#9A42DD #DD4D42 #85DD42 #42D2DD
split-complementary
#9A42DD #D2DD42 #42DD4D
monochromatic
#5A198C #7C22BF #9A42DD #B676E6 #D1AAF0

Accessibility & contrast

On white

5.00
#9A42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9A42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42DD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42DD#FFFFFF#000000##FFFFFF
##9A42DD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0270DA
Tritanopia (blue-blind)
#8E668B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a42dd;
/* rgb */ color: rgb(154, 66, 221);
/* oklch */ color: oklch(57.1% 0.226 306.4);
Tailwind
colors: {
  custom: {
    50: '#bd7de8',
    500: '#9a42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9a42dd;
$custom-light: #bd7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42dd",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 274.065,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57051,
    "c": 0.22599,
    "h": 306.4
  },
  "luminance": 0.15987
}

Semantic roles & 50–950 ramp

primary
#9A42DD
secondary
#B9DD9D
accent
#EC3B88
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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