#B940D5#B940D5

#B940D5 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.3% C 0.231 H 319.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B940D5
RGBrgb(185, 64, 213)
HSLhsl(289, 64%, 54%)
HSVhsv(289, 70%, 84%)
CMYKcmyk(13.1%, 70%, 0%, 16.5%)
CIE-LABlab(50.44, 68.05, -53.67)
CIE-LCHlch(50.44, 86.66, 321.74°)
OKLaboklab(60.25% 0.1756 -0.1504)
OKLCHoklch(60.25% 0.231 319.4)
XYZxyz(33.8497, 18.7868, 64.7811)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940D5 #5CD540
analogous
#6F40D5 #B940D5 #D540A6
triadic
#B940D5 #D5B940 #40D5B9
tetradic
#B940D5 #D56F40 #5CD540 #40A6D5
square
#B940D5 #D56F40 #5CD540 #40A6D5
split-complementary
#B940D5 #A6D540 #40D56F
monochromatic
#6C1C7F #9727B1 #B940D5 #CB72E0 #DEA4EB

Accessibility & contrast

On white

4.41
#B940D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#B940D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940D5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940D5#FFFFFF#000000##000000
##B940D51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#4B7CD2
Tritanopia (blue-blind)
#B95C86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b940d5;
/* rgb */ color: rgb(185, 64, 213);
/* oklch */ color: oklch(60.3% 0.231 319.4);
Tailwind
colors: {
  custom: {
    50: '#d27fe3',
    500: '#b940d5',
    950: '#000000',
  },
}
SCSS
$custom: #b940d5;
$custom-light: #d27fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#b940d5",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 288.725,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60253,
    "c": 0.23116,
    "h": 319.4
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#B940D5
secondary
#A5D899
accent
#E74160
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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