#942AAA#942AAA

#942AAA is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.204 H 320.0°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#942AAA
RGBrgb(148, 42, 170)
HSLhsl(290, 60%, 42%)
HSVhsv(290, 75%, 67%)
CMYKcmyk(12.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(39.34, 60.34, -46.69)
CIE-LCHlch(39.34, 76.29, 322.27°)
OKLaboklab(50.37% 0.1563 -0.1309)
OKLCHoklch(50.37% 0.204 320)
XYZxyz(20.2955, 10.8552, 39.0486)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AAA #40AA2A
analogous
#542AAA #942AAA #AA2A80
triadic
#942AAA #AA942A #2AAA94
tetradic
#942AAA #AA542A #40AA2A #2A80AA
square
#942AAA #AA542A #40AA2A #2A80AA
split-complementary
#942AAA #80AA2A #2AAA54
monochromatic
#3F1248 #691E79 #942AAA #B841D0 #CA72DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##942AAA#FFFFFF#000000##FFFFFF
##942AAA1.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)
#0056AE
Deuteranopia (green-blind)
#3660A7
Tritanopia (blue-blind)
#944468
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942aaa;
/* rgb */ color: rgb(148, 42, 170);
/* oklch */ color: oklch(50.4% 0.204 320.0);
Tailwind
colors: {
  custom: {
    50: '#b76fc4',
    500: '#942aaa',
    950: '#000000',
  },
}
SCSS
$custom: #942aaa;
$custom-light: #b76fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#942aaa",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 289.688,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50368,
    "c": 0.20389,
    "h": 320
  },
  "luminance": 0.10854
}

Semantic roles & 50–950 ramp

primary
#942AAA
secondary
#7BC36C
accent
#E44460
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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