#9A42E4#9A42E4

#9A42E4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.233 H 304.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9A42E4
RGBrgb(154, 66, 228)
HSLhsl(273, 75%, 58%)
HSVhsv(273, 71%, 89%)
CMYKcmyk(32.5%, 71.1%, 0%, 10.6%)
CIE-LABlab(47.45, 64.16, -67.23)
CIE-LCHlch(47.45, 92.93, 313.66°)
OKLaboklab(57.56% 0.1331 -0.1912)
OKLCHoklch(57.56% 0.233 304.8)
XYZxyz(29.2751, 16.3680, 75.0008)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42E4 #8CE442
analogous
#4942E4 #9A42E4 #E442DD
triadic
#9A42E4 #E49A42 #42E49A
tetradic
#9A42E4 #E44942 #8CE442 #42DDE4
square
#9A42E4 #E44942 #8CE442 #42DDE4
split-complementary
#9A42E4 #DDE442 #42E449
monochromatic
#5B1596 #7C1DCC #9A42E4 #B778EC #D3ADF3

Accessibility & contrast

On white

4.91
#9A42E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9A42E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42E4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42E4#FFFFFF#000000##FFFFFF
##9A42E41.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#8C698F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9a42e4;
/* rgb */ color: rgb(154, 66, 228);
/* oklch */ color: oklch(57.6% 0.233 304.8);
Tailwind
colors: {
  custom: {
    50: '#bd7eed',
    500: '#9a42e4',
    950: '#000000',
  },
}
SCSS
$custom: #9a42e4;
$custom-light: #bd7eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42e4",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 272.593,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5756,
    "c": 0.23293,
    "h": 304.8
  },
  "luminance": 0.16368
}

Semantic roles & 50–950 ramp

primary
#9A42E4
secondary
#BEE2A0
accent
#F2368C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42E4

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

Preview Lab → · Contrast checker → · Palette generator →

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