#942CB3#942CB3

#942CB3 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.1% C 0.210 H 317.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#942CB3
RGBrgb(148, 44, 179)
HSLhsl(286, 61%, 44%)
HSVhsv(286, 75%, 70%)
CMYKcmyk(17.3%, 75.4%, 0%, 29.8%)
CIE-LABlab(40.17, 61.36, -50.70)
CIE-LCHlch(40.17, 79.59, 320.43°)
OKLaboklab(51.15% 0.1535 -0.1427)
OKLCHoklch(51.15% 0.21 317.1)
XYZxyz(21.2489, 11.3528, 43.7111)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CB3 #4BB32C
analogous
#502CB3 #942CB3 #B32C8E
triadic
#942CB3 #B3942C #2CB394
tetradic
#942CB3 #B3502C #4BB32C #2C8EB3
square
#942CB3 #B3502C #4BB32C #2C8EB3
split-complementary
#942CB3 #8EB32C #2CB350
monochromatic
#431451 #6B2082 #942CB3 #B34AD2 #C87BDF

Accessibility & contrast

On white

6.42
#942CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#942CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942CB3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942CB3#FFFFFF#000000##FFFFFF
##942CB31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#92496E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942cb3;
/* rgb */ color: rgb(148, 44, 179);
/* oklch */ color: oklch(51.1% 0.210 317.1);
Tailwind
colors: {
  custom: {
    50: '#b870ca',
    500: '#942cb3',
    950: '#000000',
  },
}
SCSS
$custom: #942cb3;
$custom-light: #b870ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942cb3",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 286.222,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.20955,
    "h": 317.1
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#942CB3
secondary
#87C774
accent
#E44469
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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