#942FA7#942FA7

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

Color values

HEX#942FA7
RGBrgb(148, 47, 167)
HSLhsl(291, 56%, 42%)
HSVhsv(291, 72%, 65%)
CMYKcmyk(11.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(39.78, 57.96, -44.18)
CIE-LCHlch(39.78, 72.88, 322.68°)
OKLaboklab(50.63% 0.1517 -0.1236)
OKLCHoklch(50.63% 0.196 320.8)
XYZxyz(20.2035, 11.1200, 37.6339)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FA7 #42A72F
analogous
#582FA7 #942FA7 #A72F7E
triadic
#942FA7 #A7942F #2FA794
tetradic
#942FA7 #A7582F #42A72F #2F7EA7
square
#942FA7 #A7582F #42A72F #2F7EA7
split-complementary
#942FA7 #7EA72F #2FA758
monochromatic
#3F1447 #6A2277 #942FA7 #B748CB #C978D9

Accessibility & contrast

On white

6.51
#942FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #942FA7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FA7#FFFFFF#000000##FFFFFF
##942FA71.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#3C61A4
Tritanopia (blue-blind)
#954568
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942fa7;
/* rgb */ color: rgb(148, 47, 167);
/* oklch */ color: oklch(50.6% 0.196 320.8);
Tailwind
colors: {
  custom: {
    50: '#b771c2',
    500: '#942fa7',
    950: '#000000',
  },
}
SCSS
$custom: #942fa7;
$custom-light: #b771c2;
$custom-dark: #000000;
JSON
{
  "hex": "#942fa7",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 290.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50625,
    "c": 0.1957,
    "h": 320.8
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#942FA7
secondary
#7EC171
accent
#DF4860
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #942FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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