#942CA6#942CA6

#942CA6 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.3% C 0.198 H 321.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#942CA6
RGBrgb(148, 44, 166)
HSLhsl(291, 58%, 41%)
HSVhsv(291, 73%, 65%)
CMYKcmyk(10.8%, 73.5%, 0%, 34.9%)
CIE-LABlab(39.33, 58.89, -44.31)
CIE-LCHlch(39.33, 73.69, 323.04°)
OKLaboklab(50.28% 0.1547 -0.124)
OKLCHoklch(50.28% 0.198 321.3)
XYZxyz(19.9956, 10.8515, 37.1103)
Luminance0.1085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CA6 #3EA62C
analogous
#572CA6 #942CA6 #A62C7B
triadic
#942CA6 #A6942C #2CA694
tetradic
#942CA6 #A6572C #3EA62C #2C7BA6
square
#942CA6 #A6572C #3EA62C #2C7BA6
split-complementary
#942CA6 #7BA62C #2CA657
monochromatic
#3E1245 #691F76 #942CA6 #B842CD #CB73DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##942CA6#FFFFFF#000000##FFFFFF
##942CA61.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)
#0055A9
Deuteranopia (green-blind)
#3B60A3
Tritanopia (blue-blind)
#954367
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942ca6;
/* rgb */ color: rgb(148, 44, 166);
/* oklch */ color: oklch(50.3% 0.198 321.3);
Tailwind
colors: {
  custom: {
    50: '#b770c1',
    500: '#942ca6',
    950: '#000000',
  },
}
SCSS
$custom: #942ca6;
$custom-light: #b770c1;
$custom-dark: #000000;
JSON
{
  "hex": "#942ca6",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 291.148,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.19828,
    "h": 321.3
  },
  "luminance": 0.1085
}

Semantic roles & 50–950 ramp

primary
#942CA6
secondary
#79C16D
accent
#E1465D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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