#B940D4#B940D4

#B940D4 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.2% C 0.230 H 319.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B940D4
RGBrgb(185, 64, 212)
HSLhsl(289, 63%, 54%)
HSVhsv(289, 70%, 83%)
CMYKcmyk(12.7%, 69.8%, 0%, 16.9%)
CIE-LABlab(50.38, 67.86, -53.19)
CIE-LCHlch(50.38, 86.22, 321.91°)
OKLaboklab(60.19% 0.1756 -0.149)
OKLCHoklch(60.19% 0.23 319.7)
XYZxyz(33.7231, 18.7362, 64.1147)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940D4 #5BD440
analogous
#6F40D4 #B940D4 #D440A5
triadic
#B940D4 #D4B940 #40D4B9
tetradic
#B940D4 #D46F40 #5BD440 #40A5D4
square
#B940D4 #D46F40 #5BD440 #40A5D4
split-complementary
#B940D4 #A5D440 #40D46F
monochromatic
#6C1C7D #9727AF #B940D4 #CB72DF #DEA4EA

Accessibility & contrast

On white

4.42
#B940D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#B940D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940D4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940D4#FFFFFF#000000##000000
##B940D41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b940d4;
/* rgb */ color: rgb(185, 64, 212);
/* oklch */ color: oklch(60.2% 0.230 319.7);
Tailwind
colors: {
  custom: {
    50: '#d27fe2',
    500: '#b940d4',
    950: '#000000',
  },
}
SCSS
$custom: #b940d4;
$custom-light: #d27fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#b940d4",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 289.054,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60191,
    "c": 0.2303,
    "h": 319.7
  },
  "luminance": 0.18735
}

Semantic roles & 50–950 ramp

primary
#B940D4
secondary
#A4D798
accent
#E64260
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940D4

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

Preview Lab → · Contrast checker → · Palette generator →

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