#B940CD#B940CD

#B940CD is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.224 H 321.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B940CD
RGBrgb(185, 64, 205)
HSLhsl(291, 59%, 53%)
HSVhsv(291, 69%, 80%)
CMYKcmyk(9.8%, 68.8%, 0%, 19.6%)
CIE-LABlab(49.97, 66.58, -49.84)
CIE-LCHlch(49.97, 83.17, 323.19°)
OKLaboklab(59.77% 0.1759 -0.1392)
OKLCHoklch(59.77% 0.224 321.7)
XYZxyz(32.8592, 18.3906, 59.5647)
Luminance0.1839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940CD #54CD40
analogous
#7240CD #B940CD #CD409B
triadic
#B940CD #CDB940 #40CDB9
tetradic
#B940CD #CD7240 #54CD40 #409BCD
square
#B940CD #CD7240 #54CD40 #409BCD
split-complementary
#B940CD #9BCD40 #40CD72
monochromatic
#681E74 #932BA5 #B940CD #CB71DA #DDA1E6

Accessibility & contrast

On white

4.49
#B940CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B940CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940CD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940CD#FFFFFF#000000##000000
##B940CD1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#096ED1
Deuteranopia (green-blind)
#517BCA
Tritanopia (blue-blind)
#BB5982
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b940cd;
/* rgb */ color: rgb(185, 64, 205);
/* oklch */ color: oklch(59.8% 0.224 321.7);
Tailwind
colors: {
  custom: {
    50: '#d27fdd',
    500: '#b940cd',
    950: '#000000',
  },
}
SCSS
$custom: #b940cd;
$custom-light: #d27fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b940cd",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 291.489,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59766,
    "c": 0.22433,
    "h": 321.7
  },
  "luminance": 0.18389
}

Semantic roles & 50–950 ramp

primary
#B940CD
secondary
#9FD396
accent
#E2465C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940CD

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

Preview Lab → · Contrast checker → · Palette generator →

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