#942AC1#942AC1

#942AC1 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.0% C 0.224 H 313.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#942AC1
RGBrgb(148, 42, 193)
HSLhsl(282, 64%, 46%)
HSVhsv(282, 78%, 76%)
CMYKcmyk(23.3%, 78.2%, 0%, 24.3%)
CIE-LABlab(40.90, 64.79, -57.75)
CIE-LCHlch(40.90, 86.79, 318.29°)
OKLaboklab(51.97% 0.1529 -0.1634)
OKLCHoklch(51.97% 0.224 313.1)
XYZxyz(22.6646, 11.8028, 51.5260)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AC1 #57C12A
analogous
#482AC1 #942AC1 #C12AA2
triadic
#942AC1 #C1942A #2AC194
tetradic
#942AC1 #C1482A #57C12A #2AA2C1
square
#942AC1 #C1482A #57C12A #2AA2C1
split-complementary
#942AC1 #A2C12A #2AC148
monochromatic
#47145C #6D1F8F #942AC1 #B04FD9 #C782E4

Accessibility & contrast

On white

6.25
#942AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#942AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AC1
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AC1#FFFFFF#000000##FFFFFF
##942AC11.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#1463BE
Tritanopia (blue-blind)
#8F4E75
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942ac1;
/* rgb */ color: rgb(148, 42, 193);
/* oklch */ color: oklch(52.0% 0.224 313.1);
Tailwind
colors: {
  custom: {
    50: '#b870d5',
    500: '#942ac1',
    950: '#000000',
  },
}
SCSS
$custom: #942ac1;
$custom-light: #b870d5;
$custom-dark: #000000;
JSON
{
  "hex": "#942ac1",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 193
  },
  "hsl": {
    "h": 282.119,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5197,
    "c": 0.22379,
    "h": 313.1
  },
  "luminance": 0.11802
}

Semantic roles & 50–950 ramp

primary
#942AC1
secondary
#93CD7A
accent
#E74172
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #942AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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