#9942CF#9942CF

#9942CF is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.9% C 0.212 H 309.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9942CF
RGBrgb(153, 66, 207)
HSLhsl(277, 59%, 54%)
HSVhsv(277, 68%, 81%)
CMYKcmyk(26.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(45.87, 59.32, -57.80)
CIE-LCHlch(45.87, 82.82, 315.74°)
OKLaboklab(55.95% 0.1346 -0.1635)
OKLCHoklch(55.95% 0.212 309.5)
XYZxyz(26.3453, 15.1742, 60.5604)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942CF #78CF42
analogous
#5242CF #9942CF #CF42BF
triadic
#9942CF #CF9942 #42CF99
tetradic
#9942CF #CF5242 #78CF42 #42BFCF
square
#9942CF #CF5242 #78CF42 #42BFCF
split-complementary
#9942CF #BFCF42 #42CF52
monochromatic
#561F78 #792BA9 #9942CF #B373DB #CEA4E8

Accessibility & contrast

On white

5.20
#9942CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9942CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942CF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942CF#FFFFFF#000000##FFFFFF
##9942CF1.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#286ECC
Tritanopia (blue-blind)
#916083
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9942cf;
/* rgb */ color: rgb(153, 66, 207);
/* oklch */ color: oklch(55.9% 0.212 309.5);
Tailwind
colors: {
  custom: {
    50: '#bb7dde',
    500: '#9942cf',
    950: '#000000',
  },
}
SCSS
$custom: #9942cf;
$custom-light: #bb7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9942cf",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 277.021,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55946,
    "c": 0.2118,
    "h": 309.5
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#9942CF
secondary
#AFD598
accent
#E34581
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9942CF

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

Preview Lab → · Contrast checker → · Palette generator →

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