#B942CC#B942CC

#B942CC is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.221 H 321.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B942CC
RGBrgb(185, 66, 204)
HSLhsl(292, 58%, 53%)
HSVhsv(292, 68%, 80%)
CMYKcmyk(9.3%, 67.6%, 0%, 20%)
CIE-LABlab(50.18, 65.63, -48.92)
CIE-LCHlch(50.18, 81.85, 323.30°)
OKLaboklab(59.9% 0.1739 -0.1365)
OKLCHoklch(59.9% 0.221 321.9)
XYZxyz(32.8537, 18.5721, 58.9693)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942CC #55CC42
analogous
#7442CC #B942CC #CC429A
triadic
#B942CC #CCB942 #42CCB9
tetradic
#B942CC #CC7442 #55CC42 #429ACC
square
#B942CC #CC7442 #55CC42 #429ACC
split-complementary
#B942CC #9ACC42 #42CC74
monochromatic
#691F74 #942CA4 #B942CC #CB72D9 #DDA2E6

Accessibility & contrast

On white

4.45
#B942CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B942CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942CC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942CC#FFFFFF#000000##000000
##B942CC1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#156FD0
Deuteranopia (green-blind)
#537CC9
Tritanopia (blue-blind)
#BB5A82
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b942cc;
/* rgb */ color: rgb(185, 66, 204);
/* oklch */ color: oklch(59.9% 0.221 321.9);
Tailwind
colors: {
  custom: {
    50: '#d280dc',
    500: '#b942cc',
    950: '#000000',
  },
}
SCSS
$custom: #b942cc;
$custom-light: #d280dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b942cc",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 291.739,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59902,
    "c": 0.22106,
    "h": 321.9
  },
  "luminance": 0.1857
}

Semantic roles & 50–950 ramp

primary
#B942CC
secondary
#9FD397
accent
#E1475C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B942CC

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

Preview Lab → · Contrast checker → · Palette generator →

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