#9D42CB#9D42CB

#9D42CB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.2% C 0.209 H 312.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9D42CB
RGBrgb(157, 66, 203)
HSLhsl(280, 57%, 53%)
HSVhsv(280, 67%, 80%)
CMYKcmyk(22.7%, 67.5%, 0%, 20.4%)
CIE-LABlab(46.15, 59.31, -55.03)
CIE-LCHlch(46.15, 80.90, 317.14°)
OKLaboklab(56.17% 0.1401 -0.1552)
OKLCHoklch(56.17% 0.209 312.1)
XYZxyz(26.6304, 15.3770, 58.0536)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42CB #70CB42
analogous
#5942CB #9D42CB #CB42B4
triadic
#9D42CB #CB9D42 #42CB9D
tetradic
#9D42CB #CB5942 #70CB42 #42B4CB
square
#9D42CB #CB5942 #70CB42 #42B4CB
split-complementary
#9D42CB #B4CB42 #42CB59
monochromatic
#572073 #7B2DA3 #9D42CB #B672D8 #CFA2E5

Accessibility & contrast

On white

5.15
#9D42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9D42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42CB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42CB#FFFFFF#000000##FFFFFF
##9D42CB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#985E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d42cb;
/* rgb */ color: rgb(157, 66, 203);
/* oklch */ color: oklch(56.2% 0.209 312.1);
Tailwind
colors: {
  custom: {
    50: '#be7ddc',
    500: '#9d42cb',
    950: '#000000',
  },
}
SCSS
$custom: #9d42cb;
$custom-light: #be7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42cb",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 279.854,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56173,
    "c": 0.20913,
    "h": 312.1
  },
  "luminance": 0.15376
}

Semantic roles & 50–950 ramp

primary
#9D42CB
secondary
#ABD297
accent
#E0487B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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