#9A42DB#9A42DB

#9A42DB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.9% C 0.224 H 306.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9A42DB
RGBrgb(154, 66, 219)
HSLhsl(275, 68%, 56%)
HSVhsv(275, 70%, 86%)
CMYKcmyk(29.7%, 69.9%, 0%, 14.1%)
CIE-LABlab(46.82, 62.15, -63.14)
CIE-LCHlch(46.82, 88.60, 314.55°)
OKLaboklab(56.91% 0.1344 -0.1792)
OKLCHoklch(56.91% 0.224 306.9)
XYZxyz(28.0581, 15.8813, 68.5914)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42DB #83DB42
analogous
#4D42DB #9A42DB #DB42CF
triadic
#9A42DB #DB9A42 #42DB9A
tetradic
#9A42DB #DB4D42 #83DB42 #42CFDB
square
#9A42DB #DB4D42 #83DB42 #42CFDB
split-complementary
#9A42DB #CFDB42 #42DB4D
monochromatic
#5A1A89 #7B24BC #9A42DB #B575E5 #D1A9EF

Accessibility & contrast

On white

5.03
#9A42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9A42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42DB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42DB#FFFFFF#000000##FFFFFF
##9A42DB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0D70D8
Tritanopia (blue-blind)
#8F658A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a42db;
/* rgb */ color: rgb(154, 66, 219);
/* oklch */ color: oklch(56.9% 0.224 306.9);
Tailwind
colors: {
  custom: {
    50: '#bd7de7',
    500: '#9a42db',
    950: '#000000',
  },
}
SCSS
$custom: #9a42db;
$custom-light: #bd7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42db",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 274.51,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56908,
    "c": 0.22401,
    "h": 306.9
  },
  "luminance": 0.15881
}

Semantic roles & 50–950 ramp

primary
#9A42DB
secondary
#B8DC9D
accent
#EB3D87
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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