#B940C1#B940C1

#B940C1 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.214 H 325.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B940C1
RGBrgb(185, 64, 193)
HSLhsl(296, 51%, 50%)
HSVhsv(296, 67%, 76%)
CMYKcmyk(4.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(49.29, 64.45, -43.98)
CIE-LCHlch(49.29, 78.03, 325.69°)
OKLaboklab(59.07% 0.1761 -0.1221)
OKLCHoklch(59.07% 0.214 325.3)
XYZxyz(31.4659, 17.8333, 52.2266)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940C1 #48C140
analogous
#7840C1 #B940C1 #C14088
triadic
#B940C1 #C1B940 #40C1B9
tetradic
#B940C1 #C17840 #48C140 #4088C1
square
#B940C1 #C17840 #48C140 #4088C1
split-complementary
#B940C1 #88C140 #40C178
monochromatic
#612166 #8E3094 #B940C1 #CA6ED0 #DB9CDF

Accessibility & contrast

On white

4.60
#B940C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B940C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B940C1
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940C1#FFFFFF#000000##FFFFFF
##B940C11.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256CC5
Deuteranopia (green-blind)
#597ABE
Tritanopia (blue-blind)
#BD547B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b940c1;
/* rgb */ color: rgb(185, 64, 193);
/* oklch */ color: oklch(59.1% 0.214 325.3);
Tailwind
colors: {
  custom: {
    50: '#d17ed4',
    500: '#b940c1',
    950: '#000000',
  },
}
SCSS
$custom: #b940c1;
$custom-light: #d17ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#b940c1",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 296.279,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59065,
    "c": 0.21426,
    "h": 325.3
  },
  "luminance": 0.17831
}

Semantic roles & 50–950 ramp

primary
#B940C1
secondary
#95CB92
accent
#DA4D56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B940C1

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

Preview Lab → · Contrast checker → · Palette generator →

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