#942FA5#942FA5

#942FA5 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.5% C 0.194 H 321.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#942FA5
RGBrgb(148, 47, 165)
HSLhsl(291, 56%, 42%)
HSVhsv(291, 72%, 65%)
CMYKcmyk(10.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(39.66, 57.59, -43.18)
CIE-LCHlch(39.66, 71.98, 323.13°)
OKLaboklab(50.5% 0.1518 -0.1207)
OKLCHoklch(50.5% 0.194 321.5)
XYZxyz(20.0200, 11.0466, 36.6677)
Luminance0.1105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FA5 #40A52F
analogous
#592FA5 #942FA5 #A52F7B
triadic
#942FA5 #A5942F #2FA594
tetradic
#942FA5 #A5592F #40A52F #2F7BA5
square
#942FA5 #A5592F #40A52F #2F7BA5
split-complementary
#942FA5 #7BA52F #2FA559
monochromatic
#3F1446 #692175 #942FA5 #B847CB #CA76D8

Accessibility & contrast

On white

6.54
#942FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#942FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FA5
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FA5#FFFFFF#000000##FFFFFF
##942FA51.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#3E61A2
Tritanopia (blue-blind)
#954567
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942fa5;
/* rgb */ color: rgb(148, 47, 165);
/* oklch */ color: oklch(50.5% 0.194 321.5);
Tailwind
colors: {
  custom: {
    50: '#b771c0',
    500: '#942fa5',
    950: '#000000',
  },
}
SCSS
$custom: #942fa5;
$custom-light: #b771c0;
$custom-dark: #000000;
JSON
{
  "hex": "#942fa5",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 291.356,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.19395,
    "h": 321.5
  },
  "luminance": 0.11046
}

Semantic roles & 50–950 ramp

primary
#942FA5
secondary
#7BC070
accent
#DF495E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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