#B940DB#B940DB

#B940DB is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.236 H 317.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B940DB
RGBrgb(185, 64, 219)
HSLhsl(287, 68%, 55%)
HSVhsv(287, 71%, 86%)
CMYKcmyk(15.5%, 70.8%, 0%, 14.1%)
CIE-LABlab(50.80, 69.17, -56.50)
CIE-LCHlch(50.80, 89.31, 320.75°)
OKLaboklab(60.63% 0.1751 -0.1587)
OKLCHoklch(60.63% 0.236 317.8)
XYZxyz(34.6253, 19.0971, 68.8663)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940DB #62DB40
analogous
#6C40DB #B940DB #DB40AF
triadic
#B940DB #DBB940 #40DBB9
tetradic
#B940DB #DB6C40 #62DB40 #40AFDB
square
#B940DB #DB6C40 #62DB40 #40AFDB
split-complementary
#B940DB #AFDB40 #40DB6C
monochromatic
#6F1987 #9923BB #B940DB #CC73E5 #DFA7EE

Accessibility & contrast

On white

4.36
#B940DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#B940DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940DB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940DB#FFFFFF#000000##000000
##B940DB1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#467DD7
Tritanopia (blue-blind)
#B85F8A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b940db;
/* rgb */ color: rgb(185, 64, 219);
/* oklch */ color: oklch(60.6% 0.236 317.8);
Tailwind
colors: {
  custom: {
    50: '#d27fe7',
    500: '#b940db',
    950: '#000000',
  },
}
SCSS
$custom: #b940db;
$custom-light: #d27fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#b940db",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 286.839,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60629,
    "c": 0.23633,
    "h": 317.8
  },
  "luminance": 0.19096
}

Semantic roles & 50–950 ramp

primary
#B940DB
secondary
#A9DC9B
accent
#EB3D63
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B940DB

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

Preview Lab → · Contrast checker → · Palette generator →

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