#B945DB#B945DB

#B945DB is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.231 H 317.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B945DB
RGBrgb(185, 69, 219)
HSLhsl(286, 68%, 56%)
HSVhsv(286, 68%, 86%)
CMYKcmyk(15.5%, 68.5%, 0%, 14.1%)
CIE-LABlab(51.48, 67.24, -55.41)
CIE-LCHlch(51.48, 87.13, 320.51°)
OKLaboklab(61.11% 0.1701 -0.1555)
OKLCHoklch(61.11% 0.231 317.6)
XYZxyz(34.9201, 19.6865, 68.9646)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945DB #67DB45
analogous
#6E45DB #B945DB #DB45B2
triadic
#B945DB #DBB945 #45DBB9
tetradic
#B945DB #DB6E45 #67DB45 #45B2DB
square
#B945DB #DB6E45 #67DB45 #45B2DB
split-complementary
#B945DB #B2DB45 #45DB6E
monochromatic
#711B8B #9B25BE #B945DB #CC78E5 #E0ACEF

Accessibility & contrast

On white

4.25
#B945DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#B945DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945DB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945DB#FFFFFF#000000##000000
##B945DB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#4A7ED8
Tritanopia (blue-blind)
#B8628B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b945db;
/* rgb */ color: rgb(185, 69, 219);
/* oklch */ color: oklch(61.1% 0.231 317.6);
Tailwind
colors: {
  custom: {
    50: '#d282e7',
    500: '#b945db',
    950: '#000000',
  },
}
SCSS
$custom: #b945db;
$custom-light: #d282e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b945db",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 286.4,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.2305,
    "h": 317.6
  },
  "luminance": 0.19685
}

Semantic roles & 50–950 ramp

primary
#B945DB
secondary
#ADDD9F
accent
#EA3D65
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B945DB

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

Preview Lab → · Contrast checker → · Palette generator →

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