#942E8D#942E8D

#942E8D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.0% C 0.175 H 330.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#942E8D
RGBrgb(148, 46, 141)
HSLhsl(304, 53%, 38%)
HSVhsv(304, 69%, 58%)
CMYKcmyk(0%, 68.9%, 4.7%, 42%)
CIE-LABlab(38.15, 53.70, -31.05)
CIE-LCHlch(38.15, 62.03, 329.97°)
OKLaboklab(48.97% 0.1527 -0.0854)
OKLCHoklch(48.97% 0.175 330.8)
XYZxyz(17.9974, 10.1743, 26.2101)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E8D #2E9435
analogous
#682E94 #942E8D #942E5A
triadic
#942E8D #8D942E #2E8D94
tetradic
#942E8D #94682E #2E9435 #2E5A94
square
#942E8D #94682E #2E9435 #2E5A94
split-complementary
#942E8D #5A942E #2E9468
monochromatic
#371134 #651F61 #942E8D #C33DB9 #D16BCA

Accessibility & contrast

On white

6.92
#942E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#942E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942E8D
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E8D#FFFFFF#000000##FFFFFF
##942E8D1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#9A395A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #942e8d;
/* rgb */ color: rgb(148, 46, 141);
/* oklch */ color: oklch(49.0% 0.175 330.8);
Tailwind
colors: {
  custom: {
    50: '#b770ae',
    500: '#942e8d',
    950: '#000000',
  },
}
SCSS
$custom: #942e8d;
$custom-light: #b770ae;
$custom-dark: #000000;
JSON
{
  "hex": "#942e8d",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 304.118,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48974,
    "c": 0.17499,
    "h": 330.8
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#942E8D
secondary
#66B86B
accent
#DC564C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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