#942EAA#942EAA

#942EAA is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.199 H 319.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#942EAA
RGBrgb(148, 46, 170)
HSLhsl(289, 57%, 42%)
HSVhsv(289, 73%, 67%)
CMYKcmyk(12.9%, 72.9%, 0%, 33.3%)
CIE-LABlab(39.84, 58.90, -45.88)
CIE-LCHlch(39.84, 74.67, 322.08°)
OKLaboklab(50.72% 0.1525 -0.1286)
OKLCHoklch(50.72% 0.199 319.9)
XYZxyz(20.4445, 11.1532, 39.0983)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EAA #44AA2E
analogous
#562EAA #942EAA #AA2E82
triadic
#942EAA #AA942E #2EAA94
tetradic
#942EAA #AA562E #44AA2E #2E82AA
square
#942EAA #AA562E #44AA2E #2E82AA
split-complementary
#942EAA #82AA2E #2EAA56
monochromatic
#40144A #6A217A #942EAA #B648CD #C978DA

Accessibility & contrast

On white

6.50
#942EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#942EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EAA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EAA#FFFFFF#000000##FFFFFF
##942EAA1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#3961A7
Tritanopia (blue-blind)
#944669
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942eaa;
/* rgb */ color: rgb(148, 46, 170);
/* oklch */ color: oklch(50.7% 0.199 319.9);
Tailwind
colors: {
  custom: {
    50: '#b771c4',
    500: '#942eaa',
    950: '#000000',
  },
}
SCSS
$custom: #942eaa;
$custom-light: #b771c4;
$custom-dark: #000000;
JSON
{
  "hex": "#942eaa",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 289.355,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50725,
    "c": 0.19948,
    "h": 319.9
  },
  "luminance": 0.11152
}

Semantic roles & 50–950 ramp

primary
#942EAA
secondary
#80C371
accent
#E14762
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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