#942EA6#942EA6

#942EA6 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.5% C 0.196 H 321.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#942EA6
RGBrgb(148, 46, 166)
HSLhsl(291, 57%, 42%)
HSVhsv(291, 72%, 65%)
CMYKcmyk(10.8%, 72.3%, 0%, 34.9%)
CIE-LABlab(39.59, 58.15, -43.90)
CIE-LCHlch(39.59, 72.86, 322.95°)
OKLaboklab(50.47% 0.1528 -0.1228)
OKLCHoklch(50.47% 0.196 321.2)
XYZxyz(20.0719, 11.0041, 37.1358)
Luminance0.1100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EA6 #40A62E
analogous
#582EA6 #942EA6 #A62E7C
triadic
#942EA6 #A6942E #2EA694
tetradic
#942EA6 #A6582E #40A62E #2E7CA6
square
#942EA6 #A6582E #40A62E #2E7CA6
split-complementary
#942EA6 #7CA62E #2EA658
monochromatic
#3F1346 #692176 #942EA6 #B846CC #CA76D9

Accessibility & contrast

On white

6.56
#942EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#942EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EA6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EA6#FFFFFF#000000##FFFFFF
##942EA61.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#954467
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942ea6;
/* rgb */ color: rgb(148, 46, 166);
/* oklch */ color: oklch(50.5% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#b771c1',
    500: '#942ea6',
    950: '#000000',
  },
}
SCSS
$custom: #942ea6;
$custom-light: #b771c1;
$custom-dark: #000000;
JSON
{
  "hex": "#942ea6",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 291,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50467,
    "c": 0.19599,
    "h": 321.2
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#942EA6
secondary
#7BC16F
accent
#E0485F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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