#942FA9#942FA9

#942FA9 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.197 H 320.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#942FA9
RGBrgb(148, 47, 169)
HSLhsl(290, 56%, 42%)
HSVhsv(290, 72%, 66%)
CMYKcmyk(12.4%, 72.2%, 0%, 33.7%)
CIE-LABlab(39.91, 58.34, -45.18)
CIE-LCHlch(39.91, 73.79, 322.25°)
OKLaboklab(50.75% 0.1516 -0.1265)
OKLCHoklch(50.75% 0.197 320.1)
XYZxyz(20.3898, 11.1945, 38.6152)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FA9 #44A92F
analogous
#572FA9 #942FA9 #A92F81
triadic
#942FA9 #A9942F #2FA994
tetradic
#942FA9 #A9572F #44A92F #2F81A9
square
#942FA9 #A9572F #44A92F #2F81A9
split-complementary
#942FA9 #81A92F #2FA957
monochromatic
#401449 #6A2279 #942FA9 #B649CC #C979DA

Accessibility & contrast

On white

6.48
#942FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#942FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FA9
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FA9#FFFFFF#000000##FFFFFF
##942FA91.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AC
Deuteranopia (green-blind)
#3A62A6
Tritanopia (blue-blind)
#954669
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942fa9;
/* rgb */ color: rgb(148, 47, 169);
/* oklch */ color: oklch(50.8% 0.197 320.1);
Tailwind
colors: {
  custom: {
    50: '#b771c3',
    500: '#942fa9',
    950: '#000000',
  },
}
SCSS
$custom: #942fa9;
$custom-light: #b771c3;
$custom-dark: #000000;
JSON
{
  "hex": "#942fa9",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 289.672,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50754,
    "c": 0.19746,
    "h": 320.1
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

primary
#942FA9
secondary
#80C272
accent
#E04862
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #942FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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