#B940BA#B940BA

#B940BA is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.209 H 327.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B940BA
RGBrgb(185, 64, 186)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(48.92, 63.25, -40.51)
CIE-LCHlch(48.92, 75.11, 327.36°)
OKLaboklab(58.67% 0.1759 -0.112)
OKLCHoklch(58.67% 0.209 327.5)
XYZxyz(30.7035, 17.5283, 48.2110)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940BA #41BA40
analogous
#7C40BA #B940BA #BA407E
triadic
#B940BA #BAB940 #40BAB9
tetradic
#B940BA #BA7C40 #41BA40 #407EBA
square
#B940BA #BA7C40 #41BA40 #407EBA
split-complementary
#B940BA #7EBA40 #40BA7C
monochromatic
#5E215F #8C308C #B940BA #CB6BCC #DB99DC

Accessibility & contrast

On white

4.66
#B940BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B940BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940BA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940BA#FFFFFF#000000##FFFFFF
##B940BA1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABE
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#BE5178
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b940ba;
/* rgb */ color: rgb(185, 64, 186);
/* oklch */ color: oklch(58.7% 0.209 327.5);
Tailwind
colors: {
  custom: {
    50: '#d17ecf',
    500: '#b940ba',
    950: '#000000',
  },
}
SCSS
$custom: #b940ba;
$custom-light: #d17ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#b940ba",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 299.508,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58674,
    "c": 0.20852,
    "h": 327.5
  },
  "luminance": 0.17526
}

Semantic roles & 50–950 ramp

primary
#B940BA
secondary
#8FC88E
accent
#D84F51
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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