#9B42C8#9B42C8

#9B42C8 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.206 H 312.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9B42C8
RGBrgb(155, 66, 200)
HSLhsl(280, 55%, 52%)
HSVhsv(280, 67%, 78%)
CMYKcmyk(22.5%, 67%, 0%, 21.6%)
CIE-LABlab(45.68, 58.24, -54.05)
CIE-LCHlch(45.68, 79.46, 317.13°)
OKLaboklab(55.72% 0.1378 -0.1524)
OKLCHoklch(55.72% 0.206 312.1)
XYZxyz(25.8892, 15.0358, 56.1708)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42C8 #6FC842
analogous
#5842C8 #9B42C8 #C842B2
triadic
#9B42C8 #C89B42 #42C89B
tetradic
#9B42C8 #C85842 #6FC842 #42B2C8
square
#9B42C8 #C85842 #6FC842 #42B2C8
split-complementary
#9B42C8 #B2C842 #42C858
monochromatic
#55206F #792E9F #9B42C8 #B471D6 #CDA1E4

Accessibility & contrast

On white

5.24
#9B42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9B42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42C8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42C8#FFFFFF#000000##FFFFFF
##9B42C81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b42c8;
/* rgb */ color: rgb(155, 66, 200);
/* oklch */ color: oklch(55.7% 0.206 312.1);
Tailwind
colors: {
  custom: {
    50: '#bc7dd9',
    500: '#9b42c8',
    950: '#000000',
  },
}
SCSS
$custom: #9b42c8;
$custom-light: #bc7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42c8",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 279.851,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55722,
    "c": 0.20551,
    "h": 312.1
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#9B42C8
secondary
#A9D096
accent
#DE4A7B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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