#942DA2#942DA2

#942DA2 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.194 H 322.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#942DA2
RGBrgb(148, 45, 162)
HSLhsl(293, 57%, 41%)
HSVhsv(293, 72%, 64%)
CMYKcmyk(8.6%, 72.2%, 0%, 36.5%)
CIE-LABlab(39.21, 57.78, -42.10)
CIE-LCHlch(39.21, 71.49, 323.92°)
OKLaboklab(50.12% 0.154 -0.1175)
OKLCHoklch(50.12% 0.194 322.7)
XYZxyz(19.6721, 10.7824, 35.2205)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DA2 #3BA22D
analogous
#5A2DA2 #942DA2 #A22D75
triadic
#942DA2 #A2942D #2DA294
tetradic
#942DA2 #A25A2D #3BA22D #2D75A2
square
#942DA2 #A25A2D #3BA22D #2D75A2
split-complementary
#942DA2 #75A22D #2DA25A
monochromatic
#3C1242 #682072 #942DA2 #BA42CA #CC72D8

Accessibility & contrast

On white

6.65
#942DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#942DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DA2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DA2#FFFFFF#000000##FFFFFF
##942DA21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#3F609F
Tritanopia (blue-blind)
#964265
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942da2;
/* rgb */ color: rgb(148, 45, 162);
/* oklch */ color: oklch(50.1% 0.194 322.7);
Tailwind
colors: {
  custom: {
    50: '#b770be',
    500: '#942da2',
    950: '#000000',
  },
}
SCSS
$custom: #942da2;
$custom-light: #b770be;
$custom-dark: #000000;
JSON
{
  "hex": "#942da2",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 292.821,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50119,
    "c": 0.19371,
    "h": 322.7
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#942DA2
secondary
#76BF6C
accent
#E0485A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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