#942BA2#942BA2

#942BA2 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.196 H 322.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#942BA2
RGBrgb(148, 43, 162)
HSLhsl(293, 58%, 40%)
HSVhsv(293, 73%, 64%)
CMYKcmyk(8.6%, 73.5%, 0%, 36.5%)
CIE-LABlab(38.96, 58.51, -42.51)
CIE-LCHlch(38.96, 72.32, 324.00°)
OKLaboklab(49.94% 0.156 -0.1187)
OKLCHoklch(49.94% 0.196 322.7)
XYZxyz(19.5976, 10.6334, 35.1956)
Luminance0.1063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BA2 #39A22B
analogous
#582BA2 #942BA2 #A22B75
triadic
#942BA2 #A2942B #2BA294
tetradic
#942BA2 #A2582B #39A22B #2B75A2
square
#942BA2 #A2582B #39A22B #2B75A2
split-complementary
#942BA2 #75A22B #2BA258
monochromatic
#3C1141 #681E72 #942BA2 #BB3ECC #CC6FD9

Accessibility & contrast

On white

6.72
#942BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#942BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BA2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BA2#FFFFFF#000000##FFFFFF
##942BA21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#3D609F
Tritanopia (blue-blind)
#964164
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942ba2;
/* rgb */ color: rgb(148, 43, 162);
/* oklch */ color: oklch(49.9% 0.196 322.7);
Tailwind
colors: {
  custom: {
    50: '#b76fbe',
    500: '#942ba2',
    950: '#000000',
  },
}
SCSS
$custom: #942ba2;
$custom-light: #b76fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#942ba2",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 292.941,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49937,
    "c": 0.19599,
    "h": 322.7
  },
  "luminance": 0.10632
}

Semantic roles & 50–950 ramp

primary
#942BA2
secondary
#73C069
accent
#E14759
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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