#942DC1#942DC1

#942DC1 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.221 H 312.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#942DC1
RGBrgb(148, 45, 193)
HSLhsl(282, 62%, 47%)
HSVhsv(282, 77%, 76%)
CMYKcmyk(23.3%, 76.7%, 0%, 24.3%)
CIE-LABlab(41.25, 63.78, -57.18)
CIE-LCHlch(41.25, 85.65, 318.12°)
OKLaboklab(52.22% 0.1505 -0.1617)
OKLCHoklch(52.22% 0.221 312.9)
XYZxyz(22.7750, 12.0236, 51.5628)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DC1 #5AC12D
analogous
#4A2DC1 #942DC1 #C12DA4
triadic
#942DC1 #C1942D #2DC194
tetradic
#942DC1 #C14A2D #5AC12D #2DA4C1
square
#942DC1 #C14A2D #5AC12D #2DA4C1
split-complementary
#942DC1 #A4C12D #2DC14A
monochromatic
#48165E #6E218F #942DC1 #AF54D7 #C686E3

Accessibility & contrast

On white

6.17
#942DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#942DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DC1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DC1#FFFFFF#000000##FFFFFF
##942DC11.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#1963BE
Tritanopia (blue-blind)
#8F5076
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942dc1;
/* rgb */ color: rgb(148, 45, 193);
/* oklch */ color: oklch(52.2% 0.221 312.9);
Tailwind
colors: {
  custom: {
    50: '#b871d5',
    500: '#942dc1',
    950: '#000000',
  },
}
SCSS
$custom: #942dc1;
$custom-light: #b871d5;
$custom-dark: #000000;
JSON
{
  "hex": "#942dc1",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 281.757,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52218,
    "c": 0.22088,
    "h": 312.9
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#942DC1
secondary
#96CC7E
accent
#E54374
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #942DC1

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

Preview Lab → · Contrast checker → · Palette generator →

#942DC1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva