#942BC2#942BC2

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

Color values

HEX#942BC2
RGBrgb(148, 43, 194)
HSLhsl(282, 64%, 46%)
HSVhsv(282, 78%, 76%)
CMYKcmyk(23.7%, 77.8%, 0%, 23.9%)
CIE-LABlab(41.09, 64.66, -58.03)
CIE-LCHlch(41.09, 86.88, 318.09°)
OKLaboklab(52.12% 0.1519 -0.1642)
OKLCHoklch(52.12% 0.224 312.8)
XYZxyz(22.8125, 11.9194, 52.1274)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BC2 #59C22B
analogous
#492BC2 #942BC2 #C22BA5
triadic
#942BC2 #C2942B #2BC294
tetradic
#942BC2 #C2492B #59C22B #2BA5C2
square
#942BC2 #C2492B #59C22B #2BA5C2
split-complementary
#942BC2 #A5C22B #2BC249
monochromatic
#48155E #6E2090 #942BC2 #AF52D9 #C684E4

Accessibility & contrast

On white

6.21
#942BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #942BC2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BC2#FFFFFF#000000##FFFFFF
##942BC21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#1363BF
Tritanopia (blue-blind)
#8F4F76
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942bc2;
/* rgb */ color: rgb(148, 43, 194);
/* oklch */ color: oklch(52.1% 0.224 312.8);
Tailwind
colors: {
  custom: {
    50: '#b871d5',
    500: '#942bc2',
    950: '#000000',
  },
}
SCSS
$custom: #942bc2;
$custom-light: #b871d5;
$custom-dark: #000000;
JSON
{
  "hex": "#942bc2",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 281.722,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52124,
    "c": 0.22373,
    "h": 312.8
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#942BC2
secondary
#95CD7C
accent
#E74174
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #942BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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