#9942D7#9942D7

#9942D7 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.220 H 307.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9942D7
RGBrgb(153, 66, 215)
HSLhsl(275, 65%, 55%)
HSVhsv(275, 69%, 84%)
CMYKcmyk(28.8%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.41, 61.07, -61.52)
CIE-LCHlch(46.41, 86.69, 314.79°)
OKLaboklab(56.5% 0.1337 -0.1744)
OKLCHoklch(56.5% 0.22 307.5)
XYZxyz(27.3482, 15.5754, 65.8424)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942D7 #80D742
analogous
#4F42D7 #9942D7 #D742CA
triadic
#9942D7 #D79942 #42D799
tetradic
#9942D7 #D74F42 #80D742 #42CAD7
square
#9942D7 #D74F42 #80D742 #42CAD7
split-complementary
#9942D7 #CAD742 #42D74F
monochromatic
#581C83 #7A26B5 #9942D7 #B475E2 #D0A7EC

Accessibility & contrast

On white

5.10
#9942D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9942D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942D7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942D7#FFFFFF#000000##FFFFFF
##9942D71.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)
#006BDB
Deuteranopia (green-blind)
#186FD4
Tritanopia (blue-blind)
#8F6388
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9942d7;
/* rgb */ color: rgb(153, 66, 215);
/* oklch */ color: oklch(56.5% 0.220 307.5);
Tailwind
colors: {
  custom: {
    50: '#bc7de4',
    500: '#9942d7',
    950: '#000000',
  },
}
SCSS
$custom: #9942d7;
$custom-light: #bc7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9942d7",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 275.034,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.21977,
    "h": 307.5
  },
  "luminance": 0.15575
}

Semantic roles & 50–950 ramp

primary
#9942D7
secondary
#B5DA9B
accent
#E84086
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9942D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9942D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva