#942BB9#942BB9

#942BB9 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.216 H 315.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#942BB9
RGBrgb(148, 43, 185)
HSLhsl(284, 62%, 45%)
HSVhsv(284, 77%, 73%)
CMYKcmyk(20%, 76.8%, 0%, 27.5%)
CIE-LABlab(40.45, 62.87, -53.78)
CIE-LCHlch(40.45, 82.73, 319.46°)
OKLaboklab(51.48% 0.1535 -0.1517)
OKLCHoklch(51.48% 0.216 315.3)
XYZxyz(21.8322, 11.5273, 46.9645)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BB9 #50B92B
analogous
#4D2BB9 #942BB9 #B92B97
triadic
#942BB9 #B9942B #2BB994
tetradic
#942BB9 #B94D2B #50B92B #2B97B9
square
#942BB9 #B94D2B #50B92B #2B97B9
split-complementary
#942BB9 #97B92B #2BB94D
monochromatic
#451456 #6C1F87 #942BB9 #B24CD5 #C77EE1

Accessibility & contrast

On white

6.35
#942BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#942BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BB9
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BB9#FFFFFF#000000##FFFFFF
##942BB91.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942bb9;
/* rgb */ color: rgb(148, 43, 185);
/* oklch */ color: oklch(51.5% 0.216 315.3);
Tailwind
colors: {
  custom: {
    50: '#b870cf',
    500: '#942bb9',
    950: '#000000',
  },
}
SCSS
$custom: #942bb9;
$custom-light: #b870cf;
$custom-dark: #000000;
JSON
{
  "hex": "#942bb9",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 284.366,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51478,
    "c": 0.21582,
    "h": 315.3
  },
  "luminance": 0.11526
}

Semantic roles & 50–950 ramp

primary
#942BB9
secondary
#8CC976
accent
#E5426D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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