#9A42DA#9A42DA

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

Color values

HEX#9A42DA
RGBrgb(154, 66, 218)
HSLhsl(275, 67%, 56%)
HSVhsv(275, 70%, 85%)
CMYKcmyk(29.4%, 69.7%, 0%, 14.5%)
CIE-LABlab(46.75, 61.93, -62.68)
CIE-LCHlch(46.75, 88.12, 314.66°)
OKLaboklab(56.84% 0.1346 -0.1778)
OKLCHoklch(56.84% 0.223 307.1)
XYZxyz(27.9268, 15.8288, 67.9001)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42DA #82DA42
analogous
#4E42DA #9A42DA #DA42CE
triadic
#9A42DA #DA9A42 #42DA9A
tetradic
#9A42DA #DA4E42 #82DA42 #42CEDA
square
#9A42DA #DA4E42 #82DA42 #42CEDA
split-complementary
#9A42DA #CEDA42 #42DA4E
monochromatic
#591A87 #7B24BA #9A42DA #B575E4 #D1A8EE

Accessibility & contrast

On white

5.04
#9A42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9A42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42DA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42DA#FFFFFF#000000##FFFFFF
##9A42DA1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#116FD7
Tritanopia (blue-blind)
#8F658A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a42da;
/* rgb */ color: rgb(154, 66, 218);
/* oklch */ color: oklch(56.8% 0.223 307.1);
Tailwind
colors: {
  custom: {
    50: '#bd7de6',
    500: '#9a42da',
    950: '#000000',
  },
}
SCSS
$custom: #9a42da;
$custom-light: #bd7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42da",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 274.737,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56837,
    "c": 0.22302,
    "h": 307.1
  },
  "luminance": 0.15828
}

Semantic roles & 50–950 ramp

primary
#9A42DA
secondary
#B7DB9C
accent
#EA3E86
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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