#B940CF#B940CF

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

Color values

HEX#B940CF
RGBrgb(185, 64, 207)
HSLhsl(291, 60%, 53%)
HSVhsv(291, 69%, 81%)
CMYKcmyk(10.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(50.08, 66.95, -50.80)
CIE-LCHlch(50.08, 84.04, 322.81°)
OKLaboklab(59.89% 0.1759 -0.142)
OKLCHoklch(59.89% 0.226 321.1)
XYZxyz(33.1022, 18.4878, 60.8443)
Luminance0.1849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940CF #56CF40
analogous
#7140CF #B940CF #CF409E
triadic
#B940CF #CFB940 #40CFB9
tetradic
#B940CF #CF7140 #56CF40 #409ECF
square
#B940CF #CF7140 #56CF40 #409ECF
split-complementary
#B940CF #9ECF40 #40CF71
monochromatic
#691E77 #942AA8 #B940CF #CB71DB #DDA2E8

Accessibility & contrast

On white

4.47
#B940CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#B940CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940CF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940CF#FFFFFF#000000##000000
##B940CF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#507CCC
Tritanopia (blue-blind)
#BA5A83
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b940cf;
/* rgb */ color: rgb(185, 64, 207);
/* oklch */ color: oklch(59.9% 0.226 321.1);
Tailwind
colors: {
  custom: {
    50: '#d27fde',
    500: '#b940cf',
    950: '#000000',
  },
}
SCSS
$custom: #b940cf;
$custom-light: #d27fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b940cf",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 290.769,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59886,
    "c": 0.22602,
    "h": 321.1
  },
  "luminance": 0.18486
}

Semantic roles & 50–950 ramp

primary
#B940CF
secondary
#A0D497
accent
#E3455D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940CF

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

Preview Lab → · Contrast checker → · Palette generator →

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