#942DCA#942DCA

#942DCA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.9% C 0.229 H 310.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#942DCA
RGBrgb(148, 45, 202)
HSLhsl(279, 64%, 48%)
HSVhsv(279, 78%, 79%)
CMYKcmyk(26.7%, 77.7%, 0%, 20.8%)
CIE-LABlab(41.90, 65.61, -61.37)
CIE-LCHlch(41.90, 89.84, 316.91°)
OKLaboklab(52.88% 0.1487 -0.174)
OKLCHoklch(52.88% 0.229 310.5)
XYZxyz(23.8097, 12.4375, 57.0121)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DCA #63CA2D
analogous
#452DCA #942DCA #CA2DB1
triadic
#942DCA #CA942D #2DCA94
tetradic
#942DCA #CA452D #63CA2D #2DB1CA
square
#942DCA #CA452D #63CA2D #2DB1CA
split-complementary
#942DCA #B1CA2D #2DCA45
monochromatic
#4B1766 #6F2298 #942DCA #AE5ADA #C78CE5

Accessibility & contrast

On white

6.02
#942DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#942DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DCA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DCA#FFFFFF#000000##FFFFFF
##942DCA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#8C547B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #942dca;
/* rgb */ color: rgb(148, 45, 202);
/* oklch */ color: oklch(52.9% 0.229 310.5);
Tailwind
colors: {
  custom: {
    50: '#b972db',
    500: '#942dca',
    950: '#000000',
  },
}
SCSS
$custom: #942dca;
$custom-light: #b972db;
$custom-dark: #000000;
JSON
{
  "hex": "#942dca",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 279.363,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52879,
    "c": 0.22892,
    "h": 310.5
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#942DCA
secondary
#9ECF83
accent
#E7417A
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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