#942DB9#942DB9

#942DB9 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.214 H 315.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#942DB9
RGBrgb(148, 45, 185)
HSLhsl(284, 61%, 45%)
HSVhsv(284, 76%, 73%)
CMYKcmyk(20%, 75.7%, 0%, 27.5%)
CIE-LABlab(40.70, 62.18, -53.39)
CIE-LCHlch(40.70, 81.95, 319.35°)
OKLaboklab(51.65% 0.1517 -0.1506)
OKLCHoklch(51.65% 0.214 315.2)
XYZxyz(21.9067, 11.6763, 46.9893)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DB9 #52B92D
analogous
#4E2DB9 #942DB9 #B92D98
triadic
#942DB9 #B9942D #2DB994
tetradic
#942DB9 #B94E2D #52B92D #2D98B9
square
#942DB9 #B94E2D #52B92D #2D98B9
split-complementary
#942DB9 #98B92D #2DB94E
monochromatic
#451557 #6D2188 #942DB9 #B14FD4 #C780E0

Accessibility & contrast

On white

6.30
#942DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#942DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DB9
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DB9#FFFFFF#000000##FFFFFF
##942DB91.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#2863B6
Tritanopia (blue-blind)
#914C72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942db9;
/* rgb */ color: rgb(148, 45, 185);
/* oklch */ color: oklch(51.6% 0.214 315.2);
Tailwind
colors: {
  custom: {
    50: '#b871cf',
    500: '#942db9',
    950: '#000000',
  },
}
SCSS
$custom: #942db9;
$custom-light: #b871cf;
$custom-dark: #000000;
JSON
{
  "hex": "#942db9",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 284.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51649,
    "c": 0.21377,
    "h": 315.2
  },
  "luminance": 0.11675
}

Semantic roles & 50–950 ramp

primary
#942DB9
secondary
#8EC979
accent
#E4446E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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