#9942DB#9942DB

#9942DB is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.224 H 306.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9942DB
RGBrgb(153, 66, 219)
HSLhsl(274, 68%, 56%)
HSVhsv(274, 70%, 86%)
CMYKcmyk(30.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(46.69, 61.96, -63.36)
CIE-LCHlch(46.69, 88.62, 314.36°)
OKLaboklab(56.79% 0.1331 -0.1798)
OKLCHoklch(56.79% 0.224 306.5)
XYZxyz(27.8685, 15.7835, 68.5825)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9942DB #84DB42
analogous
#4C42DB #9942DB #DB42D0
triadic
#9942DB #DB9942 #42DB99
tetradic
#9942DB #DB4C42 #84DB42 #42D0DB
square
#9942DB #DB4C42 #84DB42 #42D0DB
split-complementary
#9942DB #D0DB42 #42DB4C
monochromatic
#591A89 #7A24BC #9942DB #B575E5 #D0A9EF

Accessibility & contrast

On white

5.05
#9942DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9942DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9942DB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9942DB#FFFFFF#000000##FFFFFF
##9942DB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#086FD8
Tritanopia (blue-blind)
#8E658A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9942db;
/* rgb */ color: rgb(153, 66, 219);
/* oklch */ color: oklch(56.8% 0.224 306.5);
Tailwind
colors: {
  custom: {
    50: '#bc7de7',
    500: '#9942db',
    950: '#000000',
  },
}
SCSS
$custom: #9942db;
$custom-light: #bc7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9942db",
  "rgb": {
    "r": 153,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 274.118,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56788,
    "c": 0.22375,
    "h": 306.5
  },
  "luminance": 0.15783
}

Semantic roles & 50–950 ramp

primary
#9942DB
secondary
#B8DC9D
accent
#EB3D88
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9942DB

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

Preview Lab → · Contrast checker → · Palette generator →

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