#B945B2#B945B2

#B945B2 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.8% C 0.195 H 330.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B945B2
RGBrgb(185, 69, 178)
HSLhsl(304, 46%, 50%)
HSVhsv(304, 63%, 73%)
CMYKcmyk(0%, 62.7%, 3.8%, 27.5%)
CIE-LABlab(49.24, 59.89, -35.34)
CIE-LCHlch(49.24, 69.53, 329.46°)
OKLaboklab(58.77% 0.1696 -0.0971)
OKLCHoklch(58.77% 0.195 330.2)
XYZxyz(30.1714, 17.7870, 43.9550)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945B2 #45B94C
analogous
#8645B9 #B945B2 #B94578
triadic
#B945B2 #B2B945 #45B2B9
tetradic
#B945B2 #B98645 #45B94C #4578B9
square
#B945B2 #B98645 #45B94C #4578B9
split-complementary
#B945B2 #78B945 #45B986
monochromatic
#60245C #8C3487 #B945B2 #CA71C5 #DB9ED7

Accessibility & contrast

On white

4.61
#B945B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B945B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B945B2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945B2#FFFFFF#000000##FFFFFF
##B945B21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#647BAF
Tritanopia (blue-blind)
#C05175
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b945b2;
/* rgb */ color: rgb(185, 69, 178);
/* oklch */ color: oklch(58.8% 0.195 330.2);
Tailwind
colors: {
  custom: {
    50: '#d181c9',
    500: '#b945b2',
    950: '#000000',
  },
}
SCSS
$custom: #b945b2;
$custom-light: #d181c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b945b2",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 303.621,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.19544,
    "h": 330.2
  },
  "luminance": 0.17785
}

Semantic roles & 50–950 ramp

primary
#B945B2
secondary
#93C796
accent
#D55A52
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B945B2

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

Preview Lab → · Contrast checker → · Palette generator →

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