#942AA2#942AA2

#942AA2 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.197 H 322.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#942AA2
RGBrgb(148, 42, 162)
HSLhsl(293, 59%, 40%)
HSVhsv(293, 74%, 64%)
CMYKcmyk(8.6%, 74.1%, 0%, 36.5%)
CIE-LABlab(38.83, 58.86, -42.71)
CIE-LCHlch(38.83, 72.72, 324.04°)
OKLaboklab(49.85% 0.1569 -0.1193)
OKLCHoklch(49.85% 0.197 322.8)
XYZxyz(19.5617, 10.5616, 35.1837)
Luminance0.1056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AA2 #38A22A
analogous
#582AA2 #942AA2 #A22A74
triadic
#942AA2 #A2942A #2AA294
tetradic
#942AA2 #A2582A #38A22A #2A74A2
square
#942AA2 #A2582A #38A22A #2A74A2
split-complementary
#942AA2 #74A22A #2AA258
monochromatic
#3B1141 #681D71 #942AA2 #BC3DCD #CD6DD9

Accessibility & contrast

On white

6.75
#942AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#942AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AA2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AA2#FFFFFF#000000##FFFFFF
##942AA21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#3D5F9F
Tritanopia (blue-blind)
#964064
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #942aa2;
/* rgb */ color: rgb(148, 42, 162);
/* oklch */ color: oklch(49.8% 0.197 322.8);
Tailwind
colors: {
  custom: {
    50: '#b76fbe',
    500: '#942aa2',
    950: '#000000',
  },
}
SCSS
$custom: #942aa2;
$custom-light: #b76fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#942aa2",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 293,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.49849,
    "c": 0.1971,
    "h": 322.8
  },
  "luminance": 0.1056
}

Semantic roles & 50–950 ramp

primary
#942AA2
secondary
#72C068
accent
#E24658
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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