#B940C7#B940C7

#B940C7 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.219 H 323.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B940C7
RGBrgb(185, 64, 199)
HSLhsl(294, 55%, 52%)
HSVhsv(294, 68%, 78%)
CMYKcmyk(7%, 67.8%, 0%, 22%)
CIE-LABlab(49.63, 65.51, -46.93)
CIE-LCHlch(49.63, 80.58, 324.38°)
OKLaboklab(59.41% 0.1761 -0.1307)
OKLCHoklch(59.41% 0.219 323.4)
XYZxyz(32.1488, 18.1065, 55.8233)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940C7 #4EC740
analogous
#7640C7 #B940C7 #C74092
triadic
#B940C7 #C7B940 #40C7B9
tetradic
#B940C7 #C77640 #4EC740 #4092C7
square
#B940C7 #C77640 #4EC740 #4092C7
split-complementary
#B940C7 #92C740 #40C776
monochromatic
#65206D #912E9C #B940C7 #CA6FD5 #DC9FE3

Accessibility & contrast

On white

4.54
#B940C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B940C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B940C7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940C7#FFFFFF#000000##000000
##B940C71.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#567BC4
Tritanopia (blue-blind)
#BC567F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b940c7;
/* rgb */ color: rgb(185, 64, 199);
/* oklch */ color: oklch(59.4% 0.219 323.4);
Tailwind
colors: {
  custom: {
    50: '#d27fd8',
    500: '#b940c7',
    950: '#000000',
  },
}
SCSS
$custom: #b940c7;
$custom-light: #d27fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#b940c7",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 293.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59411,
    "c": 0.21926,
    "h": 323.4
  },
  "luminance": 0.18105
}

Semantic roles & 50–950 ramp

primary
#B940C7
secondary
#9ACF94
accent
#DE4A59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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