#B942E2#B942E2

#B942E2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.240 H 315.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B942E2
RGBrgb(185, 66, 226)
HSLhsl(285, 73%, 57%)
HSVhsv(285, 71%, 89%)
CMYKcmyk(18.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(51.50, 69.74, -59.35)
CIE-LCHlch(51.50, 91.58, 319.60°)
OKLaboklab(61.27% 0.1726 -0.167)
OKLCHoklch(61.27% 0.24 315.9)
XYZxyz(35.6811, 19.7031, 73.8603)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942E2 #6BE242
analogous
#6942E2 #B942E2 #E242BB
triadic
#B942E2 #E2B942 #42E2B9
tetradic
#B942E2 #E26942 #6BE242 #42BBE2
square
#B942E2 #E26942 #6BE242 #42BBE2
split-complementary
#B942E2 #BBE242 #42E269
monochromatic
#731793 #9D1FC8 #B942E2 #CD77EA #E0ACF2

Accessibility & contrast

On white

4.25
#B942E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#B942E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942E2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942E2#FFFFFF#000000##000000
##B942E21.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#407EDE
Tritanopia (blue-blind)
#B6638E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b942e2;
/* rgb */ color: rgb(185, 66, 226);
/* oklch */ color: oklch(61.3% 0.240 315.9);
Tailwind
colors: {
  custom: {
    50: '#d281ec',
    500: '#b942e2',
    950: '#000000',
  },
}
SCSS
$custom: #b942e2;
$custom-light: #d281ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b942e2",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 284.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61266,
    "c": 0.24017,
    "h": 315.9
  },
  "luminance": 0.19702
}

Semantic roles & 50–950 ramp

primary
#B942E2
secondary
#B0E09F
accent
#F03867
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B942E2

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

Preview Lab → · Contrast checker → · Palette generator →

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