#B942D6#B942D6

#B942D6 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.5% C 0.230 H 319.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B942D6
RGBrgb(185, 66, 214)
HSLhsl(288, 64%, 55%)
HSVhsv(288, 69%, 84%)
CMYKcmyk(13.6%, 69.2%, 0%, 16.1%)
CIE-LABlab(50.77, 67.47, -53.71)
CIE-LCHlch(50.77, 86.24, 321.48°)
OKLaboklab(60.51% 0.1735 -0.1505)
OKLCHoklch(60.51% 0.23 319.1)
XYZxyz(34.0918, 19.0674, 65.4899)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942D6 #5FD642
analogous
#6F42D6 #B942D6 #D642A9
triadic
#B942D6 #D6B942 #42D6B9
tetradic
#B942D6 #D66F42 #5FD642 #42A9D6
square
#B942D6 #D66F42 #5FD642 #42A9D6
split-complementary
#B942D6 #A9D642 #42D66F
monochromatic
#6E1C82 #9827B4 #B942D6 #CC74E1 #DEA7EC

Accessibility & contrast

On white

4.36
#B942D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#B942D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942D6
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942D6#FFFFFF#000000##000000
##B942D61.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#4C7DD3
Tritanopia (blue-blind)
#B95E88
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b942d6;
/* rgb */ color: rgb(185, 66, 214);
/* oklch */ color: oklch(60.5% 0.230 319.1);
Tailwind
colors: {
  custom: {
    50: '#d280e3',
    500: '#b942d6',
    950: '#000000',
  },
}
SCSS
$custom: #b942d6;
$custom-light: #d280e3;
$custom-dark: #000000;
JSON
{
  "hex": "#b942d6",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 288.243,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60508,
    "c": 0.22968,
    "h": 319.1
  },
  "luminance": 0.19066
}

Semantic roles & 50–950 ramp

primary
#B942D6
secondary
#A7D99B
accent
#E74061
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #B942D6

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

Preview Lab → · Contrast checker → · Palette generator →

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