#942EB5#942EB5

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

Color values

HEX#942EB5
RGBrgb(148, 46, 181)
HSLhsl(285, 59%, 45%)
HSVhsv(285, 75%, 71%)
CMYKcmyk(18.2%, 74.6%, 0%, 29%)
CIE-LABlab(40.55, 61.03, -51.26)
CIE-LCHlch(40.55, 79.70, 319.97°)
OKLaboklab(51.46% 0.1514 -0.1444)
OKLCHoklch(51.46% 0.209 316.4)
XYZxyz(21.5289, 11.5870, 44.8096)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB5 #4FB52E
analogous
#502EB5 #942EB5 #B52E93
triadic
#942EB5 #B5942E #2EB594
tetradic
#942EB5 #B5502E #4FB52E #2E93B5
square
#942EB5 #B5502E #4FB52E #2E93B5
split-complementary
#942EB5 #93B52E #2EB550
monochromatic
#441553 #6C2284 #942EB5 #B24ED2 #C77FDE

Accessibility & contrast

On white

6.33
#942EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#942EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB5
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB5#FFFFFF#000000##FFFFFF
##942EB51.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942eb5;
/* rgb */ color: rgb(148, 46, 181);
/* oklch */ color: oklch(51.5% 0.209 316.4);
Tailwind
colors: {
  custom: {
    50: '#b871cc',
    500: '#942eb5',
    950: '#000000',
  },
}
SCSS
$custom: #942eb5;
$custom-light: #b871cc;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb5",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 285.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51461,
    "c": 0.20917,
    "h": 316.4
  },
  "luminance": 0.11586
}

Semantic roles & 50–950 ramp

primary
#942EB5
secondary
#8BC778
accent
#E3456C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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