#B940DF#B940DF

#B940DF is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.9% C 0.240 H 316.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B940DF
RGBrgb(185, 64, 223)
HSLhsl(286, 71%, 56%)
HSVhsv(286, 71%, 87%)
CMYKcmyk(17%, 71.3%, 0%, 12.5%)
CIE-LABlab(51.05, 69.92, -58.38)
CIE-LCHlch(51.05, 91.09, 320.14°)
OKLaboklab(60.89% 0.1748 -0.1642)
OKLCHoklch(60.89% 0.24 316.8)
XYZxyz(35.1583, 19.3102, 71.6730)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940DF #66DF40
analogous
#6A40DF #B940DF #DF40B6
triadic
#B940DF #DFB940 #40DFB9
tetradic
#B940DF #DF6A40 #66DF40 #40B6DF
square
#B940DF #DF6A40 #66DF40 #40B6DF
split-complementary
#B940DF #B6DF40 #40DF6A
monochromatic
#71188D #9B20C1 #B940DF #CC74E8 #DFA9F1

Accessibility & contrast

On white

4.32
#B940DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#B940DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940DF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940DF#FFFFFF#000000##000000
##B940DF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#427DDB
Tritanopia (blue-blind)
#B7618C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b940df;
/* rgb */ color: rgb(185, 64, 223);
/* oklch */ color: oklch(60.9% 0.240 316.8);
Tailwind
colors: {
  custom: {
    50: '#d280ea',
    500: '#b940df',
    950: '#000000',
  },
}
SCSS
$custom: #b940df;
$custom-light: #d280ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b940df",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 285.66,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.23979,
    "h": 316.8
  },
  "luminance": 0.19309
}

Semantic roles & 50–950 ramp

primary
#B940DF
secondary
#ACDE9D
accent
#EE3A65
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B940DF

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

Preview Lab → · Contrast checker → · Palette generator →

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