#942FA6#942FA6

#942FA6 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.195 H 321.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#942FA6
RGBrgb(148, 47, 166)
HSLhsl(291, 56%, 42%)
HSVhsv(291, 72%, 65%)
CMYKcmyk(10.8%, 71.7%, 0%, 34.9%)
CIE-LABlab(39.72, 57.77, -43.68)
CIE-LCHlch(39.72, 72.43, 322.91°)
OKLaboklab(50.56% 0.1518 -0.1222)
OKLCHoklch(50.56% 0.195 321.2)
XYZxyz(20.1114, 11.0832, 37.1489)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FA6 #41A62F
analogous
#582FA6 #942FA6 #A62F7D
triadic
#942FA6 #A6942F #2FA694
tetradic
#942FA6 #A6582F #41A62F #2F7DA6
square
#942FA6 #A6582F #41A62F #2F7DA6
split-complementary
#942FA6 #7DA62F #2FA658
monochromatic
#3F1447 #692176 #942FA6 #B747CB #CA77D8

Accessibility & contrast

On white

6.53
#942FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#942FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FA6
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FA6#FFFFFF#000000##FFFFFF
##942FA61.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#3D61A3
Tritanopia (blue-blind)
#954567
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942fa6;
/* rgb */ color: rgb(148, 47, 166);
/* oklch */ color: oklch(50.6% 0.195 321.2);
Tailwind
colors: {
  custom: {
    50: '#b771c1',
    500: '#942fa6',
    950: '#000000',
  },
}
SCSS
$custom: #942fa6;
$custom-light: #b771c1;
$custom-dark: #000000;
JSON
{
  "hex": "#942fa6",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 290.924,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50561,
    "c": 0.19482,
    "h": 321.2
  },
  "luminance": 0.11082
}

Semantic roles & 50–950 ramp

primary
#942FA6
secondary
#7CC170
accent
#DF495F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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