#B940D9#B940D9

#B940D9 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.235 H 318.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B940D9
RGBrgb(185, 64, 217)
HSLhsl(287, 67%, 55%)
HSVhsv(287, 71%, 85%)
CMYKcmyk(14.7%, 70.5%, 0%, 14.9%)
CIE-LABlab(50.68, 68.79, -55.56)
CIE-LCHlch(50.68, 88.43, 321.07°)
OKLaboklab(60.5% 0.1753 -0.1559)
OKLCHoklch(60.5% 0.235 318.3)
XYZxyz(34.3636, 18.9924, 67.4880)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940D9 #60D940
analogous
#6D40D9 #B940D9 #D940AC
triadic
#B940D9 #D9B940 #40D9B9
tetradic
#B940D9 #D96D40 #60D940 #40ACD9
square
#B940D9 #D96D40 #60D940 #40ACD9
split-complementary
#B940D9 #ACD940 #40D96D
monochromatic
#6E1A84 #9924B7 #B940D9 #CC73E3 #DEA6ED

Accessibility & contrast

On white

4.38
#B940D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#B940D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940D9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940D9#FFFFFF#000000##000000
##B940D91.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#487CD5
Tritanopia (blue-blind)
#B85E89
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b940d9;
/* rgb */ color: rgb(185, 64, 217);
/* oklch */ color: oklch(60.5% 0.235 318.3);
Tailwind
colors: {
  custom: {
    50: '#d27fe5',
    500: '#b940d9',
    950: '#000000',
  },
}
SCSS
$custom: #b940d9;
$custom-light: #d27fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b940d9",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 287.451,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60503,
    "c": 0.23459,
    "h": 318.3
  },
  "luminance": 0.18991
}

Semantic roles & 50–950 ramp

primary
#B940D9
secondary
#A8DA9A
accent
#EA3E62
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B940D9

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

Preview Lab → · Contrast checker → · Palette generator →

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