#942EA1#942EA1

#942EA1 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.192 H 323.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#942EA1
RGBrgb(148, 46, 161)
HSLhsl(293, 56%, 41%)
HSVhsv(293, 71%, 63%)
CMYKcmyk(8.1%, 71.4%, 0%, 36.9%)
CIE-LABlab(39.28, 57.22, -41.38)
CIE-LCHlch(39.28, 70.62, 324.13°)
OKLaboklab(50.15% 0.153 -0.1154)
OKLCHoklch(50.15% 0.192 323)
XYZxyz(19.6221, 10.8242, 34.7670)
Luminance0.1082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EA1 #3BA12E
analogous
#5A2EA1 #942EA1 #A12E75
triadic
#942EA1 #A1942E #2EA194
tetradic
#942EA1 #A15A2E #3BA12E #2E75A1
square
#942EA1 #A15A2E #3BA12E #2E75A1
split-complementary
#942EA1 #75A12E #2EA15A
monochromatic
#3C1342 #682071 #942EA1 #BA43C9 #CC73D7

Accessibility & contrast

On white

6.64
#942EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#942EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EA1
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EA1#FFFFFF#000000##FFFFFF
##942EA11.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0355A4
Deuteranopia (green-blind)
#40609E
Tritanopia (blue-blind)
#964264
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942ea1;
/* rgb */ color: rgb(148, 46, 161);
/* oklch */ color: oklch(50.2% 0.192 323.0);
Tailwind
colors: {
  custom: {
    50: '#b771bd',
    500: '#942ea1',
    950: '#000000',
  },
}
SCSS
$custom: #942ea1;
$custom-light: #b771bd;
$custom-dark: #000000;
JSON
{
  "hex": "#942ea1",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 293.217,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50151,
    "c": 0.19168,
    "h": 323
  },
  "luminance": 0.10823
}

Semantic roles & 50–950 ramp

primary
#942EA1
secondary
#76BE6C
accent
#DF495A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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