#942EA8#942EA8

#942EA8 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.198 H 320.5°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#942EA8
RGBrgb(148, 46, 168)
HSLhsl(290, 57%, 42%)
HSVhsv(290, 73%, 66%)
CMYKcmyk(11.9%, 72.6%, 0%, 34.1%)
CIE-LABlab(39.71, 58.53, -44.89)
CIE-LCHlch(39.71, 73.76, 322.51°)
OKLaboklab(50.6% 0.1526 -0.1257)
OKLCHoklch(50.6% 0.198 320.5)
XYZxyz(20.2568, 11.0781, 38.1095)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EA8 #42A82E
analogous
#572EA8 #942EA8 #A82E7F
triadic
#942EA8 #A8942E #2EA894
tetradic
#942EA8 #A8572E #42A82E #2E7FA8
square
#942EA8 #A8572E #42A82E #2E7FA8
split-complementary
#942EA8 #7FA82E #2EA857
monochromatic
#3F1448 #6A2178 #942EA8 #B747CD #C977DA

Accessibility & contrast

On white

6.53
#942EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#942EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EA8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EA8#FFFFFF#000000##FFFFFF
##942EA81.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#3B61A5
Tritanopia (blue-blind)
#954568
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942ea8;
/* rgb */ color: rgb(148, 46, 168);
/* oklch */ color: oklch(50.6% 0.198 320.5);
Tailwind
colors: {
  custom: {
    50: '#b771c2',
    500: '#942ea8',
    950: '#000000',
  },
}
SCSS
$custom: #942ea8;
$custom-light: #b771c2;
$custom-dark: #000000;
JSON
{
  "hex": "#942ea8",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 290.164,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50595,
    "c": 0.19774,
    "h": 320.5
  },
  "luminance": 0.11077
}

Semantic roles & 50–950 ramp

primary
#942EA8
secondary
#7EC270
accent
#E04861
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #942EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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