#942FB6#942FB6

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

Color values

HEX#942FB6
RGBrgb(148, 47, 182)
HSLhsl(285, 59%, 45%)
HSVhsv(285, 74%, 71%)
CMYKcmyk(18.7%, 74.2%, 0%, 28.6%)
CIE-LABlab(40.75, 60.86, -51.54)
CIE-LCHlch(40.75, 79.75, 319.74°)
OKLaboklab(51.62% 0.1503 -0.1452)
OKLCHoklch(51.62% 0.209 316)
XYZxyz(21.6714, 11.7072, 45.3651)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB6 #51B62F
analogous
#512FB6 #942FB6 #B62F94
triadic
#942FB6 #B6942F #2FB694
tetradic
#942FB6 #B6512F #51B62F #2F94B6
square
#942FB6 #B6512F #51B62F #2F94B6
split-complementary
#942FB6 #94B62F #2FB651
monochromatic
#451655 #6C2285 #942FB6 #B150D2 #C781DE

Accessibility & contrast

On white

6.29
#942FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#942FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB6
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB6#FFFFFF#000000##FFFFFF
##942FB61.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942fb6;
/* rgb */ color: rgb(148, 47, 182);
/* oklch */ color: oklch(51.6% 0.209 316.0);
Tailwind
colors: {
  custom: {
    50: '#b872cd',
    500: '#942fb6',
    950: '#000000',
  },
}
SCSS
$custom: #942fb6;
$custom-light: #b872cd;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb6",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 284.889,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.20897,
    "h": 316
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#942FB6
secondary
#8DC779
accent
#E2466D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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