#9A42E7#9A42E7

#9A42E7 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.8% C 0.236 H 304.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9A42E7
RGBrgb(154, 66, 231)
HSLhsl(272, 77%, 58%)
HSVhsv(272, 71%, 91%)
CMYKcmyk(33.3%, 71.4%, 0%, 9.4%)
CIE-LABlab(47.67, 64.83, -68.57)
CIE-LCHlch(47.67, 94.37, 313.39°)
OKLaboklab(57.78% 0.1326 -0.1951)
OKLCHoklch(57.78% 0.236 304.2)
XYZxyz(29.6951, 16.5361, 77.2132)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42E7 #8FE742
analogous
#4742E7 #9A42E7 #E742E2
triadic
#9A42E7 #E79A42 #42E79A
tetradic
#9A42E7 #E74742 #8FE742 #42E2E7
square
#9A42E7 #E74742 #8FE742 #42E2E7
split-complementary
#9A42E7 #E2E742 #42E747
monochromatic
#5C149B #7C1BD1 #9A42E7 #B778EE #D4AFF5

Accessibility & contrast

On white

4.88
#9A42E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9A42E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42E7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42E7#FFFFFF#000000##FFFFFF
##9A42E71.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#8B6A91
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9a42e7;
/* rgb */ color: rgb(154, 66, 231);
/* oklch */ color: oklch(57.8% 0.236 304.2);
Tailwind
colors: {
  custom: {
    50: '#be7ef0',
    500: '#9a42e7',
    950: '#000000',
  },
}
SCSS
$custom: #9a42e7;
$custom-light: #be7ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42e7",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 272,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57781,
    "c": 0.23591,
    "h": 304.2
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#9A42E7
secondary
#C0E3A2
accent
#F4348D
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9A42E7

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

Preview Lab → · Contrast checker → · Palette generator →

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