#942DCE#942DCE

#942DCE is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.2% C 0.233 H 309.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#942DCE
RGBrgb(148, 45, 206)
HSLhsl(278, 64%, 49%)
HSVhsv(278, 78%, 81%)
CMYKcmyk(28.2%, 78.2%, 0%, 19.2%)
CIE-LABlab(42.20, 66.44, -63.20)
CIE-LCHlch(42.20, 91.70, 316.43°)
OKLaboklab(53.18% 0.1479 -0.1794)
OKLCHoklch(53.18% 0.233 309.5)
XYZxyz(24.2895, 12.6294, 59.5387)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DCE #67CE2D
analogous
#442DCE #942DCE #CE2DB8
triadic
#942DCE #CE942D #2DCE94
tetradic
#942DCE #CE442D #67CE2D #2DB8CE
square
#942DCE #CE442D #67CE2D #2DB8CE
split-complementary
#942DCE #B8CE2D #2DCE44
monochromatic
#4C176A #70229C #942DCE #AE5DDC #C78FE7

Accessibility & contrast

On white

5.96
#942DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#942DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DCE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DCE#FFFFFF#000000##FFFFFF
##942DCE1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0065CB
Tritanopia (blue-blind)
#8B567E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #942dce;
/* rgb */ color: rgb(148, 45, 206);
/* oklch */ color: oklch(53.2% 0.233 309.5);
Tailwind
colors: {
  custom: {
    50: '#b972de',
    500: '#942dce',
    950: '#000000',
  },
}
SCSS
$custom: #942dce;
$custom-light: #b972de;
$custom-dark: #000000;
JSON
{
  "hex": "#942dce",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 206
  },
  "hsl": {
    "h": 278.385,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5318,
    "c": 0.2325,
    "h": 309.5
  },
  "luminance": 0.12629
}

Semantic roles & 50–950 ramp

primary
#942DCE
secondary
#A1D186
accent
#E7417D
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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