#942DAC#942DAC

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

Color values

HEX#942DAC
RGBrgb(148, 45, 172)
HSLhsl(289, 59%, 43%)
HSVhsv(289, 74%, 67%)
CMYKcmyk(14%, 73.8%, 0%, 32.5%)
CIE-LABlab(39.84, 59.65, -47.08)
CIE-LCHlch(39.84, 75.99, 321.72°)
OKLaboklab(50.76% 0.1533 -0.1321)
OKLCHoklch(50.76% 0.202 319.3)
XYZxyz(20.5966, 11.1522, 40.0894)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DAC #45AC2D
analogous
#542DAC #942DAC #AC2D85
triadic
#942DAC #AC942D #2DAC94
tetradic
#942DAC #AC542D #45AC2D #2D85AC
square
#942DAC #AC542D #45AC2D #2D85AC
split-complementary
#942DAC #85AC2D #2DAC54
monochromatic
#41144B #6A207B #942DAC #B547CF #C978DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##942DAC#FFFFFF#000000##FFFFFF
##942DAC1.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)
#0057B0
Deuteranopia (green-blind)
#3661A9
Tritanopia (blue-blind)
#94466A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942dac;
/* rgb */ color: rgb(148, 45, 172);
/* oklch */ color: oklch(50.8% 0.202 319.3);
Tailwind
colors: {
  custom: {
    50: '#b770c5',
    500: '#942dac',
    950: '#000000',
  },
}
SCSS
$custom: #942dac;
$custom-light: #b770c5;
$custom-dark: #000000;
JSON
{
  "hex": "#942dac",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 288.661,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.20236,
    "h": 319.3
  },
  "luminance": 0.11151
}

Semantic roles & 50–950 ramp

primary
#942DAC
secondary
#81C471
accent
#E24663
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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