#B945DF#B945DF

#B945DF is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.4% C 0.234 H 316.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B945DF
RGBrgb(185, 69, 223)
HSLhsl(285, 71%, 57%)
HSVhsv(285, 69%, 87%)
CMYKcmyk(17%, 69.1%, 0%, 12.5%)
CIE-LABlab(51.72, 68.01, -57.29)
CIE-LCHlch(51.72, 88.93, 319.89°)
OKLaboklab(61.37% 0.1699 -0.161)
OKLCHoklch(61.37% 0.234 316.5)
XYZxyz(35.4530, 19.8997, 71.7712)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945DF #6BDF45
analogous
#6C45DF #B945DF #DF45B8
triadic
#B945DF #DFB945 #45DFB9
tetradic
#B945DF #DF6C45 #6BDF45 #45B8DF
square
#B945DF #DF6C45 #6BDF45 #45B8DF
split-complementary
#B945DF #B8DF45 #45DF6C
monochromatic
#731991 #9D22C5 #B945DF #CD79E8 #E0ADF1

Accessibility & contrast

On white

4.22
#B945DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#B945DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945DF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945DF#FFFFFF#000000##000000
##B945DF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#467FDB
Tritanopia (blue-blind)
#B7648D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b945df;
/* rgb */ color: rgb(185, 69, 223);
/* oklch */ color: oklch(61.4% 0.234 316.5);
Tailwind
colors: {
  custom: {
    50: '#d282ea',
    500: '#b945df',
    950: '#000000',
  },
}
SCSS
$custom: #b945df;
$custom-light: #d282ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b945df",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 285.195,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61366,
    "c": 0.23406,
    "h": 316.5
  },
  "luminance": 0.19898
}

Semantic roles & 50–950 ramp

primary
#B945DF
secondary
#B0DFA1
accent
#ED3A67
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B945DF

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

Preview Lab → · Contrast checker → · Palette generator →

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