#942EB6#942EB6

#942EB6 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.210 H 316.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#942EB6
RGBrgb(148, 46, 182)
HSLhsl(285, 60%, 45%)
HSVhsv(285, 75%, 71%)
CMYKcmyk(18.7%, 74.7%, 0%, 28.6%)
CIE-LABlab(40.62, 61.23, -51.74)
CIE-LCHlch(40.62, 80.16, 319.80°)
OKLaboklab(51.53% 0.1513 -0.1458)
OKLCHoklch(51.53% 0.21 316.1)
XYZxyz(21.6319, 11.6281, 45.3519)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB6 #50B62E
analogous
#502EB6 #942EB6 #B62E94
triadic
#942EB6 #B6942E #2EB694
tetradic
#942EB6 #B6502E #50B62E #2E94B6
square
#942EB6 #B6502E #50B62E #2E94B6
split-complementary
#942EB6 #94B62E #2EB650
monochromatic
#451554 #6C2285 #942EB6 #B24FD2 #C780DF

Accessibility & contrast

On white

6.32
#942EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#942EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB6
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB6#FFFFFF#000000##FFFFFF
##942EB61.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#2C63B3
Tritanopia (blue-blind)
#924B70
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942eb6;
/* rgb */ color: rgb(148, 46, 182);
/* oklch */ color: oklch(51.5% 0.210 316.1);
Tailwind
colors: {
  custom: {
    50: '#b871cd',
    500: '#942eb6',
    950: '#000000',
  },
}
SCSS
$custom: #942eb6;
$custom-light: #b871cd;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb6",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 285,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51529,
    "c": 0.21006,
    "h": 316.1
  },
  "luminance": 0.11627
}

Semantic roles & 50–950 ramp

primary
#942EB6
secondary
#8CC878
accent
#E3456C
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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