#9A42C8#9A42C8

#9A42C8 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.205 H 311.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9A42C8
RGBrgb(154, 66, 200)
HSLhsl(279, 55%, 52%)
HSVhsv(279, 67%, 78%)
CMYKcmyk(23%, 67%, 0%, 21.6%)
CIE-LABlab(45.55, 58.02, -54.28)
CIE-LCHlch(45.55, 79.45, 316.91°)
OKLaboklab(55.6% 0.1365 -0.1531)
OKLCHoklch(55.6% 0.205 311.7)
XYZxyz(25.6981, 14.9372, 56.1618)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42C8 #70C842
analogous
#5742C8 #9A42C8 #C842B3
triadic
#9A42C8 #C89A42 #42C89A
tetradic
#9A42C8 #C85742 #70C842 #42B3C8
square
#9A42C8 #C85742 #70C842 #42B3C8
split-complementary
#9A42C8 #B3C842 #42C857
monochromatic
#54206F #782E9F #9A42C8 #B371D6 #CDA1E4

Accessibility & contrast

On white

5.27
#9A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9A42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42C8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42C8#FFFFFF#000000##FFFFFF
##9A42C81.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#945D80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a42c8;
/* rgb */ color: rgb(154, 66, 200);
/* oklch */ color: oklch(55.6% 0.205 311.7);
Tailwind
colors: {
  custom: {
    50: '#bc7dd9',
    500: '#9a42c8',
    950: '#000000',
  },
}
SCSS
$custom: #9a42c8;
$custom-light: #bc7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42c8",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 279.403,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55597,
    "c": 0.20517,
    "h": 311.7
  },
  "luminance": 0.14937
}

Semantic roles & 50–950 ramp

primary
#9A42C8
secondary
#AAD096
accent
#DE4A7D
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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