#B942DB#B942DB

#B942DB is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.8% C 0.234 H 317.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B942DB
RGBrgb(185, 66, 219)
HSLhsl(287, 68%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15.5%, 69.9%, 0%, 14.1%)
CIE-LABlab(51.07, 68.41, -56.08)
CIE-LCHlch(51.07, 88.46, 320.66°)
OKLaboklab(60.82% 0.1732 -0.1574)
OKLCHoklch(60.82% 0.234 317.7)
XYZxyz(34.7402, 19.3267, 68.9046)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942DB #64DB42
analogous
#6C42DB #B942DB #DB42B0
triadic
#B942DB #DBB942 #42DBB9
tetradic
#B942DB #DB6C42 #64DB42 #42B0DB
square
#B942DB #DB6C42 #64DB42 #42B0DB
split-complementary
#B942DB #B0DB42 #42DB6C
monochromatic
#701A89 #9A24BC #B942DB #CC75E5 #DFA9EF

Accessibility & contrast

On white

4.32
#B942DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#B942DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942DB#FFFFFF#000000##000000
##B942DB1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#477DD7
Tritanopia (blue-blind)
#B8608A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b942db;
/* rgb */ color: rgb(185, 66, 219);
/* oklch */ color: oklch(60.8% 0.234 317.7);
Tailwind
colors: {
  custom: {
    50: '#d280e7',
    500: '#b942db',
    950: '#000000',
  },
}
SCSS
$custom: #b942db;
$custom-light: #d280e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b942db",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 286.667,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60819,
    "c": 0.23403,
    "h": 317.7
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#B942DB
secondary
#ABDC9D
accent
#EB3D64
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B942DB

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

Preview Lab → · Contrast checker → · Palette generator →

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