#942BB4#942BB4

#942BB4 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.211 H 316.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#942BB4
RGBrgb(148, 43, 180)
HSLhsl(286, 61%, 44%)
HSVhsv(286, 76%, 71%)
CMYKcmyk(17.8%, 76.1%, 0%, 29.4%)
CIE-LABlab(40.11, 61.90, -51.38)
CIE-LCHlch(40.11, 80.44, 320.31°)
OKLaboklab(51.13% 0.1542 -0.1447)
OKLCHoklch(51.13% 0.211 316.8)
XYZxyz(21.3136, 11.3198, 44.2334)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BB4 #4BB42B
analogous
#4F2BB4 #942BB4 #B42B8F
triadic
#942BB4 #B4942B #2BB494
tetradic
#942BB4 #B44F2B #4BB42B #2B8FB4
square
#942BB4 #B44F2B #4BB42B #2B8FB4
split-complementary
#942BB4 #8FB42B #2BB44F
monochromatic
#431351 #6B1F83 #942BB4 #B349D3 #C87ADF

Accessibility & contrast

On white

6.43
#942BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#942BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BB4
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BB4#FFFFFF#000000##FFFFFF
##942BB41.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#2C61B1
Tritanopia (blue-blind)
#92496E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942bb4;
/* rgb */ color: rgb(148, 43, 180);
/* oklch */ color: oklch(51.1% 0.211 316.8);
Tailwind
colors: {
  custom: {
    50: '#b870cb',
    500: '#942bb4',
    950: '#000000',
  },
}
SCSS
$custom: #942bb4;
$custom-light: #b870cb;
$custom-dark: #000000;
JSON
{
  "hex": "#942bb4",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 285.985,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.21146,
    "h": 316.8
  },
  "luminance": 0.11319
}

Semantic roles & 50–950 ramp

primary
#942BB4
secondary
#87C773
accent
#E54369
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #942BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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