#942DCC#942DCC

#942DCC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 53.0% C 0.231 H 310.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#942DCC
RGBrgb(148, 45, 204)
HSLhsl(279, 64%, 49%)
HSVhsv(279, 78%, 80%)
CMYKcmyk(27.5%, 77.9%, 0%, 20%)
CIE-LABlab(42.05, 66.02, -62.29)
CIE-LCHlch(42.05, 90.77, 316.67°)
OKLaboklab(53.03% 0.1483 -0.1767)
OKLCHoklch(53.03% 0.231 310)
XYZxyz(24.0480, 12.5328, 58.2673)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DCC #65CC2D
analogous
#452DCC #942DCC #CC2DB5
triadic
#942DCC #CC942D #2DCC94
tetradic
#942DCC #CC452D #65CC2D #2DB5CC
square
#942DCC #CC452D #65CC2D #2DB5CC
split-complementary
#942DCC #B5CC2D #2DCC45
monochromatic
#4B1768 #70229A #942DCC #AE5BDB #C78DE6

Accessibility & contrast

On white

5.99
#942DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#942DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DCC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DCC#FFFFFF#000000##FFFFFF
##942DCC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#8C557C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #942dcc;
/* rgb */ color: rgb(148, 45, 204);
/* oklch */ color: oklch(53.0% 0.231 310.0);
Tailwind
colors: {
  custom: {
    50: '#b972dc',
    500: '#942dcc',
    950: '#000000',
  },
}
SCSS
$custom: #942dcc;
$custom-light: #b972dc;
$custom-dark: #000000;
JSON
{
  "hex": "#942dcc",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 278.868,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53029,
    "c": 0.2307,
    "h": 310
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#942DCC
secondary
#9FD085
accent
#E7417B
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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