#B945C5#B945C5

#B945C5 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.8% C 0.211 H 323.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B945C5
RGBrgb(185, 69, 197)
HSLhsl(294, 52%, 52%)
HSVhsv(294, 65%, 77%)
CMYKcmyk(6.1%, 65%, 0%, 22.7%)
CIE-LABlab(50.22, 63.17, -44.82)
CIE-LCHlch(50.22, 77.46, 324.64°)
OKLaboklab(59.8% 0.1706 -0.1246)
OKLCHoklch(59.8% 0.211 323.9)
XYZxyz(32.2129, 18.6036, 54.7066)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945C5 #51C545
analogous
#7945C5 #B945C5 #C54591
triadic
#B945C5 #C5B945 #45C5B9
tetradic
#B945C5 #C57945 #51C545 #4591C5
square
#B945C5 #C57945 #51C545 #4591C5
split-complementary
#B945C5 #91C545 #45C579
monochromatic
#66226D #92319C #B945C5 #CB74D4 #DCA2E2

Accessibility & contrast

On white

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

On black

4.72
#B945C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945C5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945C5#FFFFFF#000000##000000
##B945C51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#296FC9
Deuteranopia (green-blind)
#5A7CC2
Tritanopia (blue-blind)
#BC597F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b945c5;
/* rgb */ color: rgb(185, 69, 197);
/* oklch */ color: oklch(59.8% 0.211 323.9);
Tailwind
colors: {
  custom: {
    50: '#d181d7',
    500: '#b945c5',
    950: '#000000',
  },
}
SCSS
$custom: #b945c5;
$custom-light: #d181d7;
$custom-dark: #000000;
JSON
{
  "hex": "#b945c5",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 294.375,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59804,
    "c": 0.21128,
    "h": 323.9
  },
  "luminance": 0.18602
}

Semantic roles & 50–950 ramp

primary
#B945C5
secondary
#9CCF97
accent
#DC4C59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B945C5

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

Preview Lab → · Contrast checker → · Palette generator →

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