#B940D0#B940D0

#B940D0 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.227 H 320.8°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B940D0
RGBrgb(185, 64, 208)
HSLhsl(290, 61%, 53%)
HSVhsv(290, 69%, 82%)
CMYKcmyk(11.1%, 69.2%, 0%, 18.4%)
CIE-LABlab(50.14, 67.13, -51.28)
CIE-LCHlch(50.14, 84.47, 322.62°)
OKLaboklab(59.95% 0.1758 -0.1434)
OKLCHoklch(59.95% 0.227 320.8)
XYZxyz(33.2248, 18.5369, 61.4902)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940D0 #57D040
analogous
#7140D0 #B940D0 #D0409F
triadic
#B940D0 #D0B940 #40D0B9
tetradic
#B940D0 #D07140 #57D040 #409FD0
square
#B940D0 #D07140 #57D040 #409FD0
split-complementary
#B940D0 #9FD040 #40D071
monochromatic
#6A1E78 #952AA9 #B940D0 #CB71DC #DDA2E8

Accessibility & contrast

On white

4.46
#B940D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B940D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940D0
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940D0#FFFFFF#000000##000000
##B940D01.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD4
Deuteranopia (green-blind)
#4F7CCD
Tritanopia (blue-blind)
#BA5A84
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b940d0;
/* rgb */ color: rgb(185, 64, 208);
/* oklch */ color: oklch(59.9% 0.227 320.8);
Tailwind
colors: {
  custom: {
    50: '#d27fdf',
    500: '#b940d0',
    950: '#000000',
  },
}
SCSS
$custom: #b940d0;
$custom-light: #d27fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#b940d0",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 290.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59947,
    "c": 0.22688,
    "h": 320.8
  },
  "luminance": 0.18535
}

Semantic roles & 50–950 ramp

primary
#B940D0
secondary
#A1D597
accent
#E4445E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940D0

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

Preview Lab → · Contrast checker → · Palette generator →

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