#942FB5#942FB5

#942FB5 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.208 H 316.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#942FB5
RGBrgb(148, 47, 181)
HSLhsl(285, 59%, 45%)
HSVhsv(285, 74%, 71%)
CMYKcmyk(18.2%, 74%, 0%, 29%)
CIE-LABlab(40.68, 60.66, -51.05)
CIE-LCHlch(40.68, 79.29, 319.92°)
OKLaboklab(51.55% 0.1504 -0.1438)
OKLCHoklch(51.55% 0.208 316.3)
XYZxyz(21.5685, 11.6660, 44.8227)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB5 #50B52F
analogous
#512FB5 #942FB5 #B52F93
triadic
#942FB5 #B5942F #2FB594
tetradic
#942FB5 #B5512F #50B52F #2F93B5
square
#942FB5 #B5512F #50B52F #2F93B5
split-complementary
#942FB5 #93B52F #2FB551
monochromatic
#451654 #6C2284 #942FB5 #B250D1 #C780DE

Accessibility & contrast

On white

6.30
#942FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#942FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB5
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB5#FFFFFF#000000##FFFFFF
##942FB51.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#2F63B2
Tritanopia (blue-blind)
#924C70
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942fb5;
/* rgb */ color: rgb(148, 47, 181);
/* oklch */ color: oklch(51.6% 0.208 316.3);
Tailwind
colors: {
  custom: {
    50: '#b772cc',
    500: '#942fb5',
    950: '#000000',
  },
}
SCSS
$custom: #942fb5;
$custom-light: #b772cc;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb5",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 285.224,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51552,
    "c": 0.20808,
    "h": 316.3
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#942FB5
secondary
#8CC779
accent
#E2466C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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