#942EB9#942EB9

#942EB9 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.213 H 315.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#942EB9
RGBrgb(148, 46, 185)
HSLhsl(284, 60%, 45%)
HSVhsv(284, 75%, 73%)
CMYKcmyk(20%, 75.1%, 0%, 27.5%)
CIE-LABlab(40.82, 61.82, -53.18)
CIE-LCHlch(40.82, 81.55, 319.29°)
OKLaboklab(51.74% 0.1508 -0.15)
OKLCHoklch(51.74% 0.213 315.2)
XYZxyz(21.9453, 11.7535, 47.0022)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB9 #53B92E
analogous
#4F2EB9 #942EB9 #B92E98
triadic
#942EB9 #B9942E #2EB994
tetradic
#942EB9 #B94F2E #53B92E #2E98B9
square
#942EB9 #B94F2E #53B92E #2E98B9
split-complementary
#942EB9 #98B92E #2EB94F
monochromatic
#461657 #6D2288 #942EB9 #B151D4 #C782E0

Accessibility & contrast

On white

6.27
#942EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#942EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB9#FFFFFF#000000##FFFFFF
##942EB91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#2863B6
Tritanopia (blue-blind)
#914D72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942eb9;
/* rgb */ color: rgb(148, 46, 185);
/* oklch */ color: oklch(51.7% 0.213 315.2);
Tailwind
colors: {
  custom: {
    50: '#b872cf',
    500: '#942eb9',
    950: '#000000',
  },
}
SCSS
$custom: #942eb9;
$custom-light: #b872cf;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb9",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 284.029,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51737,
    "c": 0.21273,
    "h": 315.2
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#942EB9
secondary
#8FC97A
accent
#E3446F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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