#B940B2#B940B2

#B940B2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.2% C 0.202 H 330.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B940B2
RGBrgb(185, 64, 178)
HSLhsl(303, 49%, 49%)
HSVhsv(303, 65%, 73%)
CMYKcmyk(0%, 65.4%, 3.8%, 27.5%)
CIE-LABlab(48.51, 61.91, -36.48)
CIE-LCHlch(48.51, 71.86, 329.49°)
OKLaboklab(58.24% 0.1754 -0.1004)
OKLCHoklch(58.24% 0.202 330.2)
XYZxyz(29.8767, 17.1976, 43.8567)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940B2 #40B947
analogous
#8440B9 #B940B2 #B94076
triadic
#B940B2 #B2B940 #40B2B9
tetradic
#B940B2 #B98440 #40B947 #4076B9
square
#B940B2 #B98440 #40B947 #4076B9
split-complementary
#B940B2 #76B940 #40B984
monochromatic
#5E215B #8C3086 #B940B2 #CC6BC6 #DB98D7

Accessibility & contrast

On white

4.73
#B940B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B940B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940B2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940B2#FFFFFF#000000##FFFFFF
##B940B21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#C04E73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940b2;
/* rgb */ color: rgb(185, 64, 178);
/* oklch */ color: oklch(58.2% 0.202 330.2);
Tailwind
colors: {
  custom: {
    50: '#d17ec9',
    500: '#b940b2',
    950: '#000000',
  },
}
SCSS
$custom: #b940b2;
$custom-light: #d17ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b940b2",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 303.471,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58244,
    "c": 0.2021,
    "h": 330.2
  },
  "luminance": 0.17195
}

Semantic roles & 50–950 ramp

primary
#B940B2
secondary
#8EC791
accent
#D85850
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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