#942EA2#942EA2

#942EA2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.193 H 322.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#942EA2
RGBrgb(148, 46, 162)
HSLhsl(293, 56%, 41%)
HSVhsv(293, 72%, 64%)
CMYKcmyk(8.6%, 71.6%, 0%, 36.5%)
CIE-LABlab(39.34, 57.41, -41.89)
CIE-LCHlch(39.34, 71.06, 323.88°)
OKLaboklab(50.21% 0.153 -0.1169)
OKLCHoklch(50.21% 0.193 322.6)
XYZxyz(19.7107, 10.8596, 35.2333)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EA2 #3CA22E
analogous
#5A2EA2 #942EA2 #A22E76
triadic
#942EA2 #A2942E #2EA294
tetradic
#942EA2 #A25A2E #3CA22E #2E76A2
square
#942EA2 #A25A2E #3CA22E #2E76A2
split-complementary
#942EA2 #76A22E #2EA25A
monochromatic
#3D1343 #682072 #942EA2 #BA43CA #CB73D7

Accessibility & contrast

On white

6.62
#942EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#942EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EA2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EA2#FFFFFF#000000##FFFFFF
##942EA21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#3F619F
Tritanopia (blue-blind)
#964365
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942ea2;
/* rgb */ color: rgb(148, 46, 162);
/* oklch */ color: oklch(50.2% 0.193 322.6);
Tailwind
colors: {
  custom: {
    50: '#b771be',
    500: '#942ea2',
    950: '#000000',
  },
}
SCSS
$custom: #942ea2;
$custom-light: #b771be;
$custom-dark: #000000;
JSON
{
  "hex": "#942ea2",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 292.759,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50213,
    "c": 0.19254,
    "h": 322.6
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#942EA2
secondary
#77BF6D
accent
#DF495B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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