#B940B3#B940B3

#B940B3 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.203 H 329.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B940B3
RGBrgb(185, 64, 179)
HSLhsl(303, 49%, 49%)
HSVhsv(303, 65%, 73%)
CMYKcmyk(0%, 65.4%, 3.2%, 27.5%)
CIE-LABlab(48.56, 62.08, -36.99)
CIE-LCHlch(48.56, 72.26, 329.21°)
OKLaboklab(58.3% 0.1755 -0.1019)
OKLCHoklch(58.3% 0.203 329.9)
XYZxyz(29.9775, 17.2379, 44.3874)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940B3 #40B946
analogous
#8340B9 #B940B3 #B94077
triadic
#B940B3 #B3B940 #40B3B9
tetradic
#B940B3 #B98340 #40B946 #4077B9
square
#B940B3 #B98340 #40B946 #4077B9
split-complementary
#B940B3 #77B940 #40B983
monochromatic
#5E215B #8C3087 #B940B3 #CC6BC7 #DB98D8

Accessibility & contrast

On white

4.72
#B940B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B940B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940B3
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940B3#FFFFFF#000000##FFFFFF
##B940B31.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3569B6
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#C04E74
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940b3;
/* rgb */ color: rgb(185, 64, 179);
/* oklch */ color: oklch(58.3% 0.203 329.9);
Tailwind
colors: {
  custom: {
    50: '#d17eca',
    500: '#b940b3',
    950: '#000000',
  },
}
SCSS
$custom: #b940b3;
$custom-light: #d17eca;
$custom-dark: #000000;
JSON
{
  "hex": "#b940b3",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 302.975,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58297,
    "c": 0.2029,
    "h": 329.9
  },
  "luminance": 0.17236
}

Semantic roles & 50–950 ramp

primary
#B940B3
secondary
#8EC790
accent
#D85650
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B940B3

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

Preview Lab → · Contrast checker → · Palette generator →

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