#9942CC#9942CC

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

Color values

HEX#9942CC
RGBrgb(153, 66, 204)
HSLhsl(278, 58%, 53%)
HSVhsv(278, 68%, 80%)
CMYKcmyk(25%, 67.6%, 0%, 20%)
CIE-LABlab(45.67, 58.67, -56.39)
CIE-LCHlch(45.67, 81.37, 316.13°)
OKLaboklab(55.74% 0.1349 -0.1594)
OKLCHoklch(55.74% 0.209 310.2)
XYZxyz(25.9821, 15.0289, 58.6472)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942CC #75CC42
analogous
#5442CC #9942CC #CC42BA
triadic
#9942CC #CC9942 #42CC99
tetradic
#9942CC #CC5442 #75CC42 #42BACC
square
#9942CC #CC5442 #75CC42 #42BACC
split-complementary
#9942CC #BACC42 #42CC54
monochromatic
#551F74 #782CA4 #9942CC #B372D9 #CDA2E6

Accessibility & contrast

On white

5.24
#9942CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9942CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942CC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942CC#FFFFFF#000000##FFFFFF
##9942CC1.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)
#0068D0
Deuteranopia (green-blind)
#2D6EC9
Tritanopia (blue-blind)
#925F82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9942cc;
/* rgb */ color: rgb(153, 66, 204);
/* oklch */ color: oklch(55.7% 0.209 310.2);
Tailwind
colors: {
  custom: {
    50: '#bb7ddc',
    500: '#9942cc',
    950: '#000000',
  },
}
SCSS
$custom: #9942cc;
$custom-light: #bb7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9942cc",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 277.826,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55742,
    "c": 0.20882,
    "h": 310.2
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#9942CC
secondary
#ADD397
accent
#E14780
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9942CC

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

Preview Lab → · Contrast checker → · Palette generator →

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