#942CB2#942CB2

#942CB2 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.209 H 317.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#942CB2
RGBrgb(148, 44, 178)
HSLhsl(287, 60%, 44%)
HSVhsv(287, 75%, 70%)
CMYKcmyk(16.9%, 75.3%, 0%, 30.2%)
CIE-LABlab(40.10, 61.16, -50.21)
CIE-LCHlch(40.10, 79.13, 320.61°)
OKLaboklab(51.08% 0.1536 -0.1413)
OKLCHoklch(51.08% 0.209 317.4)
XYZxyz(21.1481, 11.3125, 43.1804)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CB2 #4AB22C
analogous
#512CB2 #942CB2 #B22C8D
triadic
#942CB2 #B2942C #2CB294
tetradic
#942CB2 #B2512C #4AB22C #2C8DB2
square
#942CB2 #B2512C #4AB22C #2C8DB2
split-complementary
#942CB2 #8DB22C #2CB251
monochromatic
#421450 #6B2081 #942CB2 #B349D2 #C87ADE

Accessibility & contrast

On white

6.44
#942CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#942CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942CB2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942CB2#FFFFFF#000000##FFFFFF
##942CB21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#2F62AF
Tritanopia (blue-blind)
#93496D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942cb2;
/* rgb */ color: rgb(148, 44, 178);
/* oklch */ color: oklch(51.1% 0.209 317.4);
Tailwind
colors: {
  custom: {
    50: '#b770ca',
    500: '#942cb2',
    950: '#000000',
  },
}
SCSS
$custom: #942cb2;
$custom-light: #b770ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942cb2",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 286.567,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51078,
    "c": 0.20868,
    "h": 317.4
  },
  "luminance": 0.11312
}

Semantic roles & 50–950 ramp

primary
#942CB2
secondary
#86C673
accent
#E44468
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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