#942E9A#942E9A

#942E9A is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.7% C 0.186 H 325.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#942E9A
RGBrgb(148, 46, 154)
HSLhsl(297, 54%, 39%)
HSVhsv(297, 70%, 60%)
CMYKcmyk(3.9%, 70.1%, 0%, 39.6%)
CIE-LABlab(38.87, 55.95, -37.82)
CIE-LCHlch(38.87, 67.54, 325.94°)
OKLaboklab(49.72% 0.1531 -0.1051)
OKLCHoklch(49.72% 0.186 325.5)
XYZxyz(19.0221, 10.5842, 31.6066)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E9A #349A2E
analogous
#5E2E9A #942E9A #9A2E6A
triadic
#942E9A #9A942E #2E9A94
tetradic
#942E9A #9A5E2E #349A2E #2E6A9A
square
#942E9A #9A5E2E #349A2E #2E6A9A
split-complementary
#942E9A #6A9A2E #2E9A5E
monochromatic
#39123C #67206B #942E9A #BE3FC6 #CE6FD4

Accessibility & contrast

On white

6.74
#942E9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#942E9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942E9A
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E9A#FFFFFF#000000##FFFFFF
##942E9A1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15539D
Deuteranopia (green-blind)
#446097
Tritanopia (blue-blind)
#983F61
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942e9a;
/* rgb */ color: rgb(148, 46, 154);
/* oklch */ color: oklch(49.7% 0.186 325.5);
Tailwind
colors: {
  custom: {
    50: '#b770b8',
    500: '#942e9a',
    950: '#000000',
  },
}
SCSS
$custom: #942e9a;
$custom-light: #b770b8;
$custom-dark: #000000;
JSON
{
  "hex": "#942e9a",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 296.667,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49723,
    "c": 0.18571,
    "h": 325.5
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#942E9A
secondary
#6DBB69
accent
#DD4A53
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #942E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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