#B940A5#B940A5

#B940A5 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.192 H 335.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B940A5
RGBrgb(185, 64, 165)
HSLhsl(310, 49%, 49%)
HSVhsv(310, 65%, 73%)
CMYKcmyk(0%, 65.4%, 10.8%, 27.5%)
CIE-LABlab(47.88, 59.84, -29.81)
CIE-LCHlch(47.88, 66.85, 333.52°)
OKLaboklab(57.58% 0.1741 -0.0812)
OKLCHoklch(57.58% 0.192 335)
XYZxyz(28.6328, 16.7000, 37.3054)
Luminance0.1670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B940A5 #40B954
analogous
#9140B9 #B940A5 #B94069
triadic
#B940A5 #A5B940 #40A5B9
tetradic
#B940A5 #B99140 #40B954 #4069B9
square
#B940A5 #B99140 #40B954 #4069B9
split-complementary
#B940A5 #69B940 #40B991
monochromatic
#5E2154 #8C307C #B940A5 #CC6BBC #DB98D0

Accessibility & contrast

On white

4.84
#B940A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B940A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B940A5
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B940A5#FFFFFF#000000##FFFFFF
##B940A51.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#6778A2
Tritanopia (blue-blind)
#C2486D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b940a5;
/* rgb */ color: rgb(185, 64, 165);
/* oklch */ color: oklch(57.6% 0.192 335.0);
Tailwind
colors: {
  custom: {
    50: '#d17ec0',
    500: '#b940a5',
    950: '#000000',
  },
}
SCSS
$custom: #b940a5;
$custom-light: #d17ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#b940a5",
  "rgb": {
    "r": 185,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 309.917,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57583,
    "c": 0.19212,
    "h": 335
  },
  "luminance": 0.16698
}

Semantic roles & 50–950 ramp

primary
#B940A5
secondary
#8EC797
accent
#D86650
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B940A5

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

Preview Lab → · Contrast checker → · Palette generator →

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