#942DC7#942DC7

#942DC7 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.226 H 311.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#942DC7
RGBrgb(148, 45, 199)
HSLhsl(280, 63%, 48%)
HSVhsv(280, 77%, 78%)
CMYKcmyk(25.6%, 77.4%, 0%, 22%)
CIE-LABlab(41.68, 64.99, -59.98)
CIE-LCHlch(41.68, 88.44, 317.30°)
OKLaboklab(52.66% 0.1493 -0.1699)
OKLCHoklch(52.66% 0.226 311.3)
XYZxyz(23.4580, 12.2968, 55.1596)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DC7 #60C72D
analogous
#472DC7 #942DC7 #C72DAD
triadic
#942DC7 #C7942D #2DC794
tetradic
#942DC7 #C7472D #60C72D #2DADC7
square
#942DC7 #C7472D #60C72D #2DADC7
split-complementary
#942DC7 #ADC72D #2DC747
monochromatic
#4A1663 #6F2295 #942DC7 #AE58D9 #C78AE5

Accessibility & contrast

On white

6.07
#942DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#942DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DC7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DC7#FFFFFF#000000##FFFFFF
##942DC71.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0464C4
Tritanopia (blue-blind)
#8D537A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #942dc7;
/* rgb */ color: rgb(148, 45, 199);
/* oklch */ color: oklch(52.7% 0.226 311.3);
Tailwind
colors: {
  custom: {
    50: '#b872d9',
    500: '#942dc7',
    950: '#000000',
  },
}
SCSS
$custom: #942dc7;
$custom-light: #b872d9;
$custom-dark: #000000;
JSON
{
  "hex": "#942dc7",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 280.13,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.22623,
    "h": 311.3
  },
  "luminance": 0.12296
}

Semantic roles & 50–950 ramp

primary
#942DC7
secondary
#9BCE81
accent
#E64278
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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