#B940B4#B940B4

#B940B4 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.204 H 329.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B940B4
RGBrgb(185, 64, 180)
HSLhsl(302, 49%, 49%)
HSVhsv(302, 65%, 73%)
CMYKcmyk(0%, 65.4%, 2.7%, 27.5%)
CIE-LABlab(48.61, 62.24, -37.49)
CIE-LCHlch(48.61, 72.66, 328.94°)
OKLaboklab(58.35% 0.1755 -0.1033)
OKLCHoklch(58.35% 0.204 329.5)
XYZxyz(30.0790, 17.2785, 44.9220)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940B4 #40B945
analogous
#8240B9 #B940B4 #B94078
triadic
#B940B4 #B4B940 #40B4B9
tetradic
#B940B4 #B98240 #40B945 #4078B9
square
#B940B4 #B98240 #40B945 #4078B9
split-complementary
#B940B4 #78B940 #40B982
monochromatic
#5E215C #8C3088 #B940B4 #CC6BC8 #DB98D9

Accessibility & contrast

On white

4.71
#B940B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B940B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940B4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940B4#FFFFFF#000000##FFFFFF
##B940B41.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3469B7
Deuteranopia (green-blind)
#6179B1
Tritanopia (blue-blind)
#BF4E75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b940b4;
/* rgb */ color: rgb(185, 64, 180);
/* oklch */ color: oklch(58.4% 0.204 329.5);
Tailwind
colors: {
  custom: {
    50: '#d17ecb',
    500: '#b940b4',
    950: '#000000',
  },
}
SCSS
$custom: #b940b4;
$custom-light: #d17ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#b940b4",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 302.479,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5835,
    "c": 0.20369,
    "h": 329.5
  },
  "luminance": 0.17276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B940B4

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

Preview Lab → · Contrast checker → · Palette generator →

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