#942E9B#942E9B

#942E9B is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.187 H 325.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#942E9B
RGBrgb(148, 46, 155)
HSLhsl(296, 54%, 39%)
HSVhsv(296, 70%, 61%)
CMYKcmyk(4.5%, 70.3%, 0%, 39.2%)
CIE-LABlab(38.93, 56.13, -38.33)
CIE-LCHlch(38.93, 67.97, 325.67°)
OKLaboklab(49.78% 0.1531 -0.1065)
OKLCHoklch(49.78% 0.187 325.2)
XYZxyz(19.1057, 10.6177, 32.0471)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E9B #359B2E
analogous
#5E2E9B #942E9B #9B2E6C
triadic
#942E9B #9B942E #2E9B94
tetradic
#942E9B #9B5E2E #359B2E #2E6C9B
square
#942E9B #9B5E2E #359B2E #2E6C9B
split-complementary
#942E9B #6C9B2E #2E9B5E
monochromatic
#3A123D #67206C #942E9B #BE40C6 #CE6FD4

Accessibility & contrast

On white

6.72
#942E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#942E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942E9B
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E9B#FFFFFF#000000##FFFFFF
##942E9B1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13549E
Deuteranopia (green-blind)
#446098
Tritanopia (blue-blind)
#974061
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942e9b;
/* rgb */ color: rgb(148, 46, 155);
/* oklch */ color: oklch(49.8% 0.187 325.2);
Tailwind
colors: {
  custom: {
    50: '#b770b9',
    500: '#942e9b',
    950: '#000000',
  },
}
SCSS
$custom: #942e9b;
$custom-light: #b770b9;
$custom-dark: #000000;
JSON
{
  "hex": "#942e9b",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 296.147,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49783,
    "c": 0.18656,
    "h": 325.2
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#942E9B
secondary
#6EBC69
accent
#DE4A54
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #942E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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