#942AB2#942AB2

#942AB2 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.9% C 0.211 H 317.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#942AB2
RGBrgb(148, 42, 178)
HSLhsl(287, 62%, 43%)
HSVhsv(287, 76%, 70%)
CMYKcmyk(16.9%, 76.4%, 0%, 30.2%)
CIE-LABlab(39.86, 61.85, -50.60)
CIE-LCHlch(39.86, 79.92, 320.71°)
OKLaboklab(50.91% 0.1554 -0.1424)
OKLCHoklch(50.91% 0.211 317.5)
XYZxyz(21.0754, 11.1671, 43.1562)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AB2 #48B22A
analogous
#502AB2 #942AB2 #B22A8C
triadic
#942AB2 #B2942A #2AB294
tetradic
#942AB2 #B2502A #48B22A #2A8CB2
square
#942AB2 #B2502A #48B22A #2A8CB2
split-complementary
#942AB2 #8CB22A #2AB250
monochromatic
#42134F #6B1E80 #942AB2 #B446D3 #C877DF

Accessibility & contrast

On white

6.50
#942AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#942AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AB2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AB2#FFFFFF#000000##FFFFFF
##942AB21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#2E61AF
Tritanopia (blue-blind)
#93486D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942ab2;
/* rgb */ color: rgb(148, 42, 178);
/* oklch */ color: oklch(50.9% 0.211 317.5);
Tailwind
colors: {
  custom: {
    50: '#b86fca',
    500: '#942ab2',
    950: '#000000',
  },
}
SCSS
$custom: #942ab2;
$custom-light: #b86fca;
$custom-dark: #000000;
JSON
{
  "hex": "#942ab2",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 286.765,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50907,
    "c": 0.21075,
    "h": 317.5
  },
  "luminance": 0.11166
}

Semantic roles & 50–950 ramp

primary
#942AB2
secondary
#84C771
accent
#E54367
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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