#B942DF#B942DF

#B942DF is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.238 H 316.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B942DF
RGBrgb(185, 66, 223)
HSLhsl(285, 71%, 57%)
HSVhsv(285, 70%, 87%)
CMYKcmyk(17%, 70.4%, 0%, 12.5%)
CIE-LABlab(51.31, 69.17, -57.95)
CIE-LCHlch(51.31, 90.24, 320.04°)
OKLaboklab(61.07% 0.1728 -0.163)
OKLCHoklch(61.07% 0.238 316.7)
XYZxyz(35.2731, 19.5399, 71.7113)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B942DF #68DF42
analogous
#6B42DF #B942DF #DF42B6
triadic
#B942DF #DFB942 #42DFB9
tetradic
#B942DF #DF6B42 #68DF42 #42B6DF
square
#B942DF #DF6B42 #68DF42 #42B6DF
split-complementary
#B942DF #B6DF42 #42DF6B
monochromatic
#72188E #9C21C3 #B942DF #CC76E8 #E0ABF1

Accessibility & contrast

On white

4.28
#B942DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#B942DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B942DF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B942DF#FFFFFF#000000##000000
##B942DF1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#437EDB
Tritanopia (blue-blind)
#B7628C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b942df;
/* rgb */ color: rgb(185, 66, 223);
/* oklch */ color: oklch(61.1% 0.238 316.7);
Tailwind
colors: {
  custom: {
    50: '#d280ea',
    500: '#b942df',
    950: '#000000',
  },
}
SCSS
$custom: #b942df;
$custom-light: #d280ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b942df",
  "rgb": {
    "r": 185,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 285.478,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.23754,
    "h": 316.7
  },
  "luminance": 0.19538
}

Semantic roles & 50–950 ramp

primary
#B942DF
secondary
#AEDF9E
accent
#EE3A66
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B942DF

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

Preview Lab → · Contrast checker → · Palette generator →

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