#942CA2#942CA2

#942CA2 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.195 H 322.7°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#942CA2
RGBrgb(148, 44, 162)
HSLhsl(293, 57%, 40%)
HSVhsv(293, 73%, 64%)
CMYKcmyk(8.6%, 72.8%, 0%, 36.5%)
CIE-LABlab(39.08, 58.15, -42.30)
CIE-LCHlch(39.08, 71.91, 323.96°)
OKLaboklab(50.03% 0.155 -0.1181)
OKLCHoklch(50.03% 0.195 322.7)
XYZxyz(19.6344, 10.7070, 35.2079)
Luminance0.1071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CA2 #3AA22C
analogous
#592CA2 #942CA2 #A22C75
triadic
#942CA2 #A2942C #2CA294
tetradic
#942CA2 #A2592C #3AA22C #2C75A2
square
#942CA2 #A2592C #3AA22C #2C75A2
split-complementary
#942CA2 #75A22C #2CA259
monochromatic
#3C1242 #681F72 #942CA2 #BB40CB #CC70D8

Accessibility & contrast

On white

6.69
#942CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#942CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942CA2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942CA2#FFFFFF#000000##FFFFFF
##942CA21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#3E609F
Tritanopia (blue-blind)
#964164
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942ca2;
/* rgb */ color: rgb(148, 44, 162);
/* oklch */ color: oklch(50.0% 0.195 322.7);
Tailwind
colors: {
  custom: {
    50: '#b770be',
    500: '#942ca2',
    950: '#000000',
  },
}
SCSS
$custom: #942ca2;
$custom-light: #b770be;
$custom-dark: #000000;
JSON
{
  "hex": "#942ca2",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 292.881,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.19486,
    "h": 322.7
  },
  "luminance": 0.10706
}

Semantic roles & 50–950 ramp

primary
#942CA2
secondary
#74BF6A
accent
#E14759
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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