#B940CC#B940CC

#B940CC is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.223 H 321.9°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B940CC
RGBrgb(185, 64, 204)
HSLhsl(292, 58%, 53%)
HSVhsv(292, 69%, 80%)
CMYKcmyk(9.3%, 68.6%, 0%, 20%)
CIE-LABlab(49.91, 66.40, -49.35)
CIE-LCHlch(49.91, 82.73, 323.38°)
OKLaboklab(59.71% 0.176 -0.1378)
OKLCHoklch(59.71% 0.223 321.9)
XYZxyz(32.7389, 18.3425, 58.9310)
Luminance0.1834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940CC #53CC40
analogous
#7340CC #B940CC #CC4099
triadic
#B940CC #CCB940 #40CCB9
tetradic
#B940CC #CC7340 #53CC40 #4099CC
square
#B940CC #CC7340 #53CC40 #4099CC
split-complementary
#B940CC #99CC40 #40CC73
monochromatic
#671F73 #932CA3 #B940CC #CB70D9 #DCA1E6

Accessibility & contrast

On white

4.50
#B940CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#B940CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940CC#FFFFFF#000000##000000
##B940CC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D6ED0
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#BB5981
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b940cc;
/* rgb */ color: rgb(185, 64, 204);
/* oklch */ color: oklch(59.7% 0.223 321.9);
Tailwind
colors: {
  custom: {
    50: '#d27fdc',
    500: '#b940cc',
    950: '#000000',
  },
}
SCSS
$custom: #b940cc;
$custom-light: #d27fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b940cc",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 291.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59706,
    "c": 0.22348,
    "h": 321.9
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#B940CC
secondary
#9ED295
accent
#E1475C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #B940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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