#942AB9#942AB9

#942AB9 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.217 H 315.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#942AB9
RGBrgb(148, 42, 185)
HSLhsl(284, 63%, 45%)
HSVhsv(284, 77%, 73%)
CMYKcmyk(20%, 77.3%, 0%, 27.5%)
CIE-LABlab(40.34, 63.21, -53.97)
CIE-LCHlch(40.34, 83.11, 319.51°)
OKLaboklab(51.4% 0.1543 -0.1523)
OKLCHoklch(51.4% 0.217 315.4)
XYZxyz(21.7962, 11.4554, 46.9525)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AB9 #4FB92A
analogous
#4D2AB9 #942AB9 #B92A96
triadic
#942AB9 #B9942A #2AB994
tetradic
#942AB9 #B94D2A #4FB92A #2A96B9
square
#942AB9 #B94D2A #4FB92A #2A96B9
split-complementary
#942AB9 #96B92A #2AB94D
monochromatic
#441355 #6C1F87 #942AB9 #B24AD6 #C77CE1

Accessibility & contrast

On white

6.38
#942AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#942AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AB9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AB9#FFFFFF#000000##FFFFFF
##942AB91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#2562B6
Tritanopia (blue-blind)
#914B71
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942ab9;
/* rgb */ color: rgb(148, 42, 185);
/* oklch */ color: oklch(51.4% 0.217 315.4);
Tailwind
colors: {
  custom: {
    50: '#b870cf',
    500: '#942ab9',
    950: '#000000',
  },
}
SCSS
$custom: #942ab9;
$custom-light: #b870cf;
$custom-dark: #000000;
JSON
{
  "hex": "#942ab9",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 284.476,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51395,
    "c": 0.21682,
    "h": 315.4
  },
  "luminance": 0.11455
}

Semantic roles & 50–950 ramp

primary
#942AB9
secondary
#8BCA75
accent
#E6426C
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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