#942BB6#942BB6

#942BB6 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.213 H 316.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#942BB6
RGBrgb(148, 43, 182)
HSLhsl(285, 62%, 44%)
HSVhsv(285, 76%, 71%)
CMYKcmyk(18.7%, 76.4%, 0%, 28.6%)
CIE-LABlab(40.25, 62.29, -52.34)
CIE-LCHlch(40.25, 81.36, 319.96°)
OKLaboklab(51.27% 0.1539 -0.1475)
OKLCHoklch(51.27% 0.213 316.2)
XYZxyz(21.5188, 11.4019, 45.3142)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BB6 #4DB62B
analogous
#4F2BB6 #942BB6 #B62B93
triadic
#942BB6 #B6942B #2BB694
tetradic
#942BB6 #B64F2B #4DB62B #2B93B6
square
#942BB6 #B64F2B #4DB62B #2B93B6
split-complementary
#942BB6 #93B62B #2BB64F
monochromatic
#431453 #6C1F84 #942BB6 #B24AD4 #C77BE0

Accessibility & contrast

On white

6.40
#942BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#942BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BB6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BB6#FFFFFF#000000##FFFFFF
##942BB61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#2A62B3
Tritanopia (blue-blind)
#924A6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942bb6;
/* rgb */ color: rgb(148, 43, 182);
/* oklch */ color: oklch(51.3% 0.213 316.2);
Tailwind
colors: {
  custom: {
    50: '#b870cd',
    500: '#942bb6',
    950: '#000000',
  },
}
SCSS
$custom: #942bb6;
$custom-light: #b870cd;
$custom-dark: #000000;
JSON
{
  "hex": "#942bb6",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 285.324,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51268,
    "c": 0.2132,
    "h": 316.2
  },
  "luminance": 0.11401
}

Semantic roles & 50–950 ramp

primary
#942BB6
secondary
#89C875
accent
#E5436B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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