#942DB2#942DB2

#942DB2 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.208 H 317.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#942DB2
RGBrgb(148, 45, 178)
HSLhsl(286, 60%, 44%)
HSVhsv(286, 75%, 70%)
CMYKcmyk(16.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(40.23, 60.81, -50.01)
CIE-LCHlch(40.23, 78.73, 320.56°)
OKLaboklab(51.17% 0.1527 -0.1407)
OKLCHoklch(51.17% 0.208 317.3)
XYZxyz(21.1858, 11.3879, 43.1930)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DB2 #4BB22D
analogous
#512DB2 #942DB2 #B22D8D
triadic
#942DB2 #B2942D #2DB294
tetradic
#942DB2 #B2512D #4BB22D #2D8DB2
square
#942DB2 #B2512D #4BB22D #2D8DB2
split-complementary
#942DB2 #8DB22D #2DB251
monochromatic
#431450 #6B2181 #942DB2 #B34BD1 #C87CDE

Accessibility & contrast

On white

6.41
#942DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#942DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DB2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DB2#FFFFFF#000000##FFFFFF
##942DB21.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#3062AF
Tritanopia (blue-blind)
#93496E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942db2;
/* rgb */ color: rgb(148, 45, 178);
/* oklch */ color: oklch(51.2% 0.208 317.3);
Tailwind
colors: {
  custom: {
    50: '#b771ca',
    500: '#942db2',
    950: '#000000',
  },
}
SCSS
$custom: #942db2;
$custom-light: #b771ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942db2",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 286.466,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.20761,
    "h": 317.3
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#942DB2
secondary
#87C675
accent
#E34569
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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