#942CCC#942CCC

#942CCC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.9% C 0.232 H 310.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#942CCC
RGBrgb(148, 44, 204)
HSLhsl(279, 65%, 49%)
HSVhsv(279, 78%, 80%)
CMYKcmyk(27.5%, 78.4%, 0%, 20%)
CIE-LABlab(41.93, 66.36, -62.48)
CIE-LCHlch(41.93, 91.14, 316.73°)
OKLaboklab(52.95% 0.1491 -0.1773)
OKLCHoklch(52.95% 0.232 310.1)
XYZxyz(24.0103, 12.4574, 58.2547)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CCC #64CC2C
analogous
#442CCC #942CCC #CC2CB4
triadic
#942CCC #CC942C #2CCC94
tetradic
#942CCC #CC442C #64CC2C #2CB4CC
square
#942CCC #CC442C #64CC2C #2CB4CC
split-complementary
#942CCC #B4CC2C #2CCC44
monochromatic
#4B1667 #6F219A #942CCC #AE5ADB #C78CE6

Accessibility & contrast

On white

6.01
#942CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#942CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942CCC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942CCC#FFFFFF#000000##FFFFFF
##942CCC1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942ccc;
/* rgb */ color: rgb(148, 44, 204);
/* oklch */ color: oklch(52.9% 0.232 310.1);
Tailwind
colors: {
  custom: {
    50: '#b972dc',
    500: '#942ccc',
    950: '#000000',
  },
}
SCSS
$custom: #942ccc;
$custom-light: #b972dc;
$custom-dark: #000000;
JSON
{
  "hex": "#942ccc",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 204
  },
  "hsl": {
    "h": 279,
    "s": 64.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.23164,
    "h": 310.1
  },
  "luminance": 0.12457
}

Semantic roles & 50–950 ramp

primary
#942CCC
secondary
#9ED083
accent
#E8407B
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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