#942DC2#942DC2

#942DC2 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.222 H 312.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#942DC2
RGBrgb(148, 45, 194)
HSLhsl(281, 62%, 47%)
HSVhsv(281, 77%, 76%)
CMYKcmyk(23.7%, 76.8%, 0%, 23.9%)
CIE-LABlab(41.32, 63.98, -57.65)
CIE-LCHlch(41.32, 86.12, 317.98°)
OKLaboklab(52.29% 0.1503 -0.1631)
OKLCHoklch(52.29% 0.222 312.7)
XYZxyz(22.8870, 12.0684, 52.1523)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DC2 #5BC22D
analogous
#4A2DC2 #942DC2 #C22DA5
triadic
#942DC2 #C2942D #2DC294
tetradic
#942DC2 #C24A2D #5BC22D #2DA5C2
square
#942DC2 #C24A2D #5BC22D #2DA5C2
split-complementary
#942DC2 #A5C22D #2DC24A
monochromatic
#48165F #6E2190 #942DC2 #AF55D7 #C686E3

Accessibility & contrast

On white

6.15
#942DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#942DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DC2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DC2#FFFFFF#000000##FFFFFF
##942DC21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#1764BF
Tritanopia (blue-blind)
#8F5077
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942dc2;
/* rgb */ color: rgb(148, 45, 194);
/* oklch */ color: oklch(52.3% 0.222 312.7);
Tailwind
colors: {
  custom: {
    50: '#b871d5',
    500: '#942dc2',
    950: '#000000',
  },
}
SCSS
$custom: #942dc2;
$custom-light: #b871d5;
$custom-dark: #000000;
JSON
{
  "hex": "#942dc2",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 281.477,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.22177,
    "h": 312.7
  },
  "luminance": 0.12068
}

Semantic roles & 50–950 ramp

primary
#942DC2
secondary
#96CD7E
accent
#E54275
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #942DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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