#942EB8#942EB8

#942EB8 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.212 H 315.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#942EB8
RGBrgb(148, 46, 184)
HSLhsl(284, 60%, 45%)
HSVhsv(284, 75%, 72%)
CMYKcmyk(19.6%, 75%, 0%, 27.8%)
CIE-LABlab(40.75, 61.62, -52.71)
CIE-LCHlch(40.75, 81.09, 319.46°)
OKLaboklab(51.67% 0.151 -0.1486)
OKLCHoklch(51.67% 0.212 315.5)
XYZxyz(21.8401, 11.7114, 46.4482)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB8 #52B82E
analogous
#4F2EB8 #942EB8 #B82E97
triadic
#942EB8 #B8942E #2EB894
tetradic
#942EB8 #B84F2E #52B82E #2E97B8
square
#942EB8 #B84F2E #52B82E #2E97B8
split-complementary
#942EB8 #97B82E #2EB84F
monochromatic
#451656 #6D2287 #942EB8 #B150D3 #C781DF

Accessibility & contrast

On white

6.28
#942EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#942EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB8#FFFFFF#000000##FFFFFF
##942EB81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#2A63B5
Tritanopia (blue-blind)
#914C71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942eb8;
/* rgb */ color: rgb(148, 46, 184);
/* oklch */ color: oklch(51.7% 0.212 315.5);
Tailwind
colors: {
  custom: {
    50: '#b871ce',
    500: '#942eb8',
    950: '#000000',
  },
}
SCSS
$custom: #942eb8;
$custom-light: #b871ce;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb8",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 284.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51668,
    "c": 0.21183,
    "h": 315.5
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#942EB8
secondary
#8EC879
accent
#E3456E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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