#9D42CF#9D42CF

#9D42CF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.4% C 0.213 H 311.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9D42CF
RGBrgb(157, 66, 207)
HSLhsl(279, 59%, 54%)
HSVhsv(279, 68%, 81%)
CMYKcmyk(24.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.41, 60.15, -56.91)
CIE-LCHlch(46.41, 82.81, 316.58°)
OKLaboklab(56.44% 0.1398 -0.1608)
OKLCHoklch(56.44% 0.213 311)
XYZxyz(27.1132, 15.5702, 60.5964)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42CF #74CF42
analogous
#5642CF #9D42CF #CF42BB
triadic
#9D42CF #CF9D42 #42CF9D
tetradic
#9D42CF #CF5642 #74CF42 #42BBCF
square
#9D42CF #CF5642 #74CF42 #42BBCF
split-complementary
#9D42CF #BBCF42 #42CF56
monochromatic
#581F78 #7C2BA9 #9D42CF #B673DB #D0A4E8

Accessibility & contrast

On white

5.10
#9D42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9D42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42CF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42CF#FFFFFF#000000##FFFFFF
##9D42CF1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#2F70CC
Tritanopia (blue-blind)
#976084
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d42cf;
/* rgb */ color: rgb(157, 66, 207);
/* oklch */ color: oklch(56.4% 0.213 311.0);
Tailwind
colors: {
  custom: {
    50: '#be7dde',
    500: '#9d42cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d42cf;
$custom-light: #be7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42cf",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 278.723,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.21303,
    "h": 311
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#9D42CF
secondary
#AED598
accent
#E3457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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