#942EB0#942EB0

#942EB0 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.1% C 0.205 H 317.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#942EB0
RGBrgb(148, 46, 176)
HSLhsl(287, 59%, 44%)
HSVhsv(287, 74%, 69%)
CMYKcmyk(15.9%, 73.9%, 0%, 31%)
CIE-LABlab(40.22, 60.05, -48.83)
CIE-LCHlch(40.22, 77.40, 320.88°)
OKLaboklab(51.12% 0.152 -0.1372)
OKLCHoklch(51.12% 0.205 317.9)
XYZxyz(21.0251, 11.3854, 42.1560)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB0 #4AB02E
analogous
#532EB0 #942EB0 #B02E8B
triadic
#942EB0 #B0942E #2EB094
tetradic
#942EB0 #B0532E #4AB02E #2E8BB0
square
#942EB0 #B0532E #4AB02E #2E8BB0
split-complementary
#942EB0 #8BB02E #2EB053
monochromatic
#42154F #6B217F #942EB0 #B34BD0 #C87CDD

Accessibility & contrast

On white

6.41
#942EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#942EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB0
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB0#FFFFFF#000000##FFFFFF
##942EB01.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B4
Deuteranopia (green-blind)
#3362AD
Tritanopia (blue-blind)
#93496D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942eb0;
/* rgb */ color: rgb(148, 46, 176);
/* oklch */ color: oklch(51.1% 0.205 317.9);
Tailwind
colors: {
  custom: {
    50: '#b771c8',
    500: '#942eb0',
    950: '#000000',
  },
}
SCSS
$custom: #942eb0;
$custom-light: #b771c8;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb0",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 287.077,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51121,
    "c": 0.20475,
    "h": 317.9
  },
  "luminance": 0.11384
}

Semantic roles & 50–950 ramp

primary
#942EB0
secondary
#86C575
accent
#E24668
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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