#B942EA#B942EA

#B942EA is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.247 H 314.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B942EA
RGBrgb(185, 66, 234)
HSLhsl(283, 80%, 59%)
HSVhsv(283, 72%, 92%)
CMYKcmyk(20.9%, 71.8%, 0%, 8.2%)
CIE-LABlab(52.01, 71.30, -63.05)
CIE-LCHlch(52.01, 95.17, 318.51°)
OKLaboklab(61.79% 0.1717 -0.1779)
OKLCHoklch(61.79% 0.247 314)
XYZxyz(36.8045, 20.1524, 79.7770)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942EA #73EA42
analogous
#6542EA #B942EA #EA42C7
triadic
#B942EA #EAB942 #42EAB9
tetradic
#B942EA #EA6542 #73EA42 #42C7EA
square
#B942EA #EA6542 #73EA42 #42C7EA
split-complementary
#B942EA #C7EA42 #42EA65
monochromatic
#7612A0 #9F18D7 #B942EA #CD79F0 #E2B0F6

Accessibility & contrast

On white

4.17
#B942EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#B942EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942EA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942EA#FFFFFF#000000##000000
##B942EA1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#367FE6
Tritanopia (blue-blind)
#B46693
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b942ea;
/* rgb */ color: rgb(185, 66, 234);
/* oklch */ color: oklch(61.8% 0.247 314.0);
Tailwind
colors: {
  custom: {
    50: '#d381f2',
    500: '#b942ea',
    950: '#000000',
  },
}
SCSS
$custom: #b942ea;
$custom-light: #d381f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b942ea",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 282.5,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.6179,
    "c": 0.24722,
    "h": 314
  },
  "luminance": 0.20151
}

Semantic roles & 50–950 ramp

primary
#B942EA
secondary
#B6E5A3
accent
#F6316B
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #B942EA

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

Preview Lab → · Contrast checker → · Palette generator →

#B942EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva