#942DB3#942DB3

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

Color values

HEX#942DB3
RGBrgb(148, 45, 179)
HSLhsl(286, 60%, 44%)
HSVhsv(286, 75%, 70%)
CMYKcmyk(17.3%, 74.9%, 0%, 29.8%)
CIE-LABlab(40.29, 61.00, -50.50)
CIE-LCHlch(40.29, 79.19, 320.38°)
OKLaboklab(51.23% 0.1526 -0.1421)
OKLCHoklch(51.23% 0.208 317)
XYZxyz(21.2866, 11.4283, 43.7237)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DB3 #4CB32D
analogous
#512DB3 #942DB3 #B32D8F
triadic
#942DB3 #B3942D #2DB394
tetradic
#942DB3 #B3512D #4CB32D #2D8FB3
square
#942DB3 #B3512D #4CB32D #2D8FB3
split-complementary
#942DB3 #8FB32D #2DB351
monochromatic
#431451 #6C2182 #942DB3 #B34BD2 #C77CDE

Accessibility & contrast

On white

6.39
#942DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#942DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DB3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DB3#FFFFFF#000000##FFFFFF
##942DB31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#2F62B0
Tritanopia (blue-blind)
#924A6E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942db3;
/* rgb */ color: rgb(148, 45, 179);
/* oklch */ color: oklch(51.2% 0.208 317.0);
Tailwind
colors: {
  custom: {
    50: '#b771ca',
    500: '#942db3',
    950: '#000000',
  },
}
SCSS
$custom: #942db3;
$custom-light: #b771ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942db3",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 286.119,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51234,
    "c": 0.20849,
    "h": 317
  },
  "luminance": 0.11427
}

Semantic roles & 50–950 ramp

primary
#942DB3
secondary
#88C775
accent
#E34569
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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