#B945D2#B945D2

#B945D2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.6% C 0.223 H 320.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B945D2
RGBrgb(185, 69, 210)
HSLhsl(289, 61%, 55%)
HSVhsv(289, 67%, 82%)
CMYKcmyk(11.9%, 67.1%, 0%, 17.6%)
CIE-LABlab(50.95, 65.55, -51.13)
CIE-LCHlch(50.95, 83.13, 322.04°)
OKLaboklab(60.56% 0.1705 -0.143)
OKLCHoklch(60.56% 0.223 320)
XYZxyz(33.7671, 19.2253, 62.8925)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945D2 #5ED245
analogous
#7345D2 #B945D2 #D245A4
triadic
#B945D2 #D2B945 #45D2B9
tetradic
#B945D2 #D27345 #5ED245 #45A4D2
square
#B945D2 #D27345 #5ED245 #45A4D2
split-complementary
#B945D2 #A4D245 #45D273
monochromatic
#6D1F7E #982AAF #B945D2 #CC76DE #DEA8EA

Accessibility & contrast

On white

4.33
#B945D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#B945D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945D2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945D2#FFFFFF#000000##000000
##B945D21.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E71D6
Deuteranopia (green-blind)
#517DCF
Tritanopia (blue-blind)
#BA5E86
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b945d2;
/* rgb */ color: rgb(185, 69, 210);
/* oklch */ color: oklch(60.6% 0.223 320.0);
Tailwind
colors: {
  custom: {
    50: '#d282e0',
    500: '#b945d2',
    950: '#000000',
  },
}
SCSS
$custom: #b945d2;
$custom-light: #d282e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b945d2",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 289.362,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60564,
    "c": 0.22256,
    "h": 320
  },
  "luminance": 0.19224
}

Semantic roles & 50–950 ramp

primary
#B945D2
secondary
#A6D79C
accent
#E44460
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B945D2

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

Preview Lab → · Contrast checker → · Palette generator →

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