#9942CA#9942CA

#9942CA is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.207 H 310.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9942CA
RGBrgb(153, 66, 202)
HSLhsl(278, 56%, 53%)
HSVhsv(278, 67%, 79%)
CMYKcmyk(24.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(45.54, 58.23, -55.45)
CIE-LCHlch(45.54, 80.41, 316.40°)
OKLaboklab(55.61% 0.1351 -0.1566)
OKLCHoklch(55.61% 0.207 310.8)
XYZxyz(25.7437, 14.9336, 57.3920)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942CA #73CA42
analogous
#5542CA #9942CA #CA42B7
triadic
#9942CA #CA9942 #42CA99
tetradic
#9942CA #CA5542 #73CA42 #42B7CA
square
#9942CA #CA5542 #73CA42 #42B7CA
split-complementary
#9942CA #B7CA42 #42CA55
monochromatic
#542072 #782DA2 #9942CA #B372D7 #CDA2E5

Accessibility & contrast

On white

5.27
#9942CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9942CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942CA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942CA#FFFFFF#000000##FFFFFF
##9942CA1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#306DC7
Tritanopia (blue-blind)
#935E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9942ca;
/* rgb */ color: rgb(153, 66, 202);
/* oklch */ color: oklch(55.6% 0.207 310.8);
Tailwind
colors: {
  custom: {
    50: '#bb7ddb',
    500: '#9942ca',
    950: '#000000',
  },
}
SCSS
$custom: #9942ca;
$custom-light: #bb7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9942ca",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 278.382,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55606,
    "c": 0.20683,
    "h": 310.8
  },
  "luminance": 0.14933
}

Semantic roles & 50–950 ramp

primary
#9942CA
secondary
#ACD196
accent
#DF487F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9942CA

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

Preview Lab → · Contrast checker → · Palette generator →

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