#942AC3#942AC3

#942AC3 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.226 H 312.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#942AC3
RGBrgb(148, 42, 195)
HSLhsl(282, 65%, 46%)
HSVhsv(282, 78%, 76%)
CMYKcmyk(24.1%, 78.5%, 0%, 23.5%)
CIE-LABlab(41.04, 65.19, -58.68)
CIE-LCHlch(41.04, 87.72, 318.01°)
OKLaboklab(52.12% 0.1526 -0.1661)
OKLCHoklch(52.12% 0.226 312.6)
XYZxyz(22.8892, 11.8926, 52.7089)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AC3 #59C32A
analogous
#482AC3 #942AC3 #C32AA6
triadic
#942AC3 #C3942A #2AC394
tetradic
#942AC3 #C3482A #59C32A #2AA6C3
square
#942AC3 #C3482A #59C32A #2AA6C3
split-complementary
#942AC3 #A6C32A #2AC348
monochromatic
#48145E #6E1F91 #942AC3 #AF51D9 #C683E4

Accessibility & contrast

On white

6.22
#942AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#942AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AC3
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AC3#FFFFFF#000000##FFFFFF
##942AC31.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#0E63C0
Tritanopia (blue-blind)
#8E4F77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942ac3;
/* rgb */ color: rgb(148, 42, 195);
/* oklch */ color: oklch(52.1% 0.226 312.6);
Tailwind
colors: {
  custom: {
    50: '#b870d6',
    500: '#942ac3',
    950: '#000000',
  },
}
SCSS
$custom: #942ac3;
$custom-light: #b870d6;
$custom-dark: #000000;
JSON
{
  "hex": "#942ac3",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 195
  },
  "hsl": {
    "h": 281.569,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52116,
    "c": 0.22555,
    "h": 312.6
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#942AC3
secondary
#95CD7B
accent
#E84074
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #942AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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