#942CAB#942CAB

#942CAB is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.203 H 319.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#942CAB
RGBrgb(148, 44, 171)
HSLhsl(289, 59%, 42%)
HSVhsv(289, 74%, 67%)
CMYKcmyk(13.5%, 74.3%, 0%, 32.9%)
CIE-LABlab(39.65, 59.82, -46.79)
CIE-LCHlch(39.65, 75.95, 321.97°)
OKLaboklab(50.61% 0.1543 -0.1312)
OKLCHoklch(50.61% 0.203 319.6)
XYZxyz(20.4632, 11.0386, 39.5730)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942CAB #43AB2C
analogous
#552CAB #942CAB #AB2C83
triadic
#942CAB #AB942C #2CAB94
tetradic
#942CAB #AB552C #43AB2C #2C83AB
square
#942CAB #AB552C #43AB2C #2C83AB
split-complementary
#942CAB #83AB2C #2CAB55
monochromatic
#40134A #6A1F7A #942CAB #B645CF #C976DC

Accessibility & contrast

On white

6.55
#942CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#942CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942CAB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942CAB#FFFFFF#000000##FFFFFF
##942CAB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#3761A8
Tritanopia (blue-blind)
#944569
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942cab;
/* rgb */ color: rgb(148, 44, 171);
/* oklch */ color: oklch(50.6% 0.203 319.6);
Tailwind
colors: {
  custom: {
    50: '#b770c5',
    500: '#942cab',
    950: '#000000',
  },
}
SCSS
$custom: #942cab;
$custom-light: #b770c5;
$custom-dark: #000000;
JSON
{
  "hex": "#942cab",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 289.134,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50608,
    "c": 0.20259,
    "h": 319.6
  },
  "luminance": 0.11038
}

Semantic roles & 50–950 ramp

primary
#942CAB
secondary
#7FC36F
accent
#E24662
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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