#9A42E5#9A42E5

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

Color values

HEX#9A42E5
RGBrgb(154, 66, 229)
HSLhsl(272, 76%, 58%)
HSVhsv(272, 71%, 90%)
CMYKcmyk(32.8%, 71.2%, 0%, 10.2%)
CIE-LABlab(47.53, 64.39, -67.68)
CIE-LCHlch(47.53, 93.41, 313.57°)
OKLaboklab(57.63% 0.1329 -0.1925)
OKLCHoklch(57.63% 0.234 304.6)
XYZxyz(29.4143, 16.4237, 75.7340)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42E5 #8DE542
analogous
#4942E5 #9A42E5 #E542DE
triadic
#9A42E5 #E59A42 #42E59A
tetradic
#9A42E5 #E54942 #8DE542 #42DEE5
square
#9A42E5 #E54942 #8DE542 #42DEE5
split-complementary
#9A42E5 #DEE542 #42E549
monochromatic
#5C1598 #7C1CCE #9A42E5 #B778EC #D3AEF4

Accessibility & contrast

On white

4.90
#9A42E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9A42E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42E5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42E5#FFFFFF#000000##FFFFFF
##9A42E51.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#8C6990
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9a42e5;
/* rgb */ color: rgb(154, 66, 229);
/* oklch */ color: oklch(57.6% 0.234 304.6);
Tailwind
colors: {
  custom: {
    50: '#bd7eee',
    500: '#9a42e5',
    950: '#000000',
  },
}
SCSS
$custom: #9a42e5;
$custom-light: #bd7eee;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42e5",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 272.393,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57633,
    "c": 0.23392,
    "h": 304.6
  },
  "luminance": 0.16424
}

Semantic roles & 50–950 ramp

primary
#9A42E5
secondary
#BFE2A1
accent
#F2358C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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