#942EA9#942EA9

#942EA9 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.7% C 0.199 H 320.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#942EA9
RGBrgb(148, 46, 169)
HSLhsl(290, 57%, 42%)
HSVhsv(290, 73%, 66%)
CMYKcmyk(12.4%, 72.8%, 0%, 33.7%)
CIE-LABlab(39.77, 58.71, -45.39)
CIE-LCHlch(39.77, 74.21, 322.29°)
OKLaboklab(50.66% 0.1526 -0.1272)
OKLCHoklch(50.66% 0.199 320.2)
XYZxyz(20.3503, 11.1155, 38.6020)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EA9 #43A92E
analogous
#572EA9 #942EA9 #A92E81
triadic
#942EA9 #A9942E #2EA994
tetradic
#942EA9 #A9572E #43A92E #2E81A9
square
#942EA9 #A9572E #43A92E #2E81A9
split-complementary
#942EA9 #81A92E #2EA957
monochromatic
#401449 #6A2179 #942EA9 #B647CD #C977DA

Accessibility & contrast

On white

6.52
#942EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #942EA9
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EA9#FFFFFF#000000##FFFFFF
##942EA91.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AC
Deuteranopia (green-blind)
#3A61A6
Tritanopia (blue-blind)
#954669
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942ea9;
/* rgb */ color: rgb(148, 46, 169);
/* oklch */ color: oklch(50.7% 0.199 320.2);
Tailwind
colors: {
  custom: {
    50: '#b771c3',
    500: '#942ea9',
    950: '#000000',
  },
}
SCSS
$custom: #942ea9;
$custom-light: #b771c3;
$custom-dark: #000000;
JSON
{
  "hex": "#942ea9",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 289.756,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5066,
    "c": 0.19861,
    "h": 320.2
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#942EA9
secondary
#7FC271
accent
#E04761
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #942EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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