#B5309F#B5309F

#B5309F is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.205 H 335.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B5309F
RGBrgb(181, 48, 159)
HSLhsl(310, 58%, 45%)
HSVhsv(310, 73%, 71%)
CMYKcmyk(0%, 73.5%, 12.2%, 29%)
CIE-LABlab(44.86, 63.78, -31.01)
CIE-LCHlch(44.86, 70.92, 334.07°)
OKLaboklab(55.18% 0.1866 -0.0846)
OKLCHoklch(55.18% 0.205 335.6)
XYZxyz(26.3714, 14.4432, 34.1931)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5309F #30B546
analogous
#8930B5 #B5309F #B5305C
triadic
#B5309F #9FB530 #309FB5
tetradic
#B5309F #B58930 #30B546 #305CB5
square
#B5309F #B58930 #30B546 #305CB5
split-complementary
#B5309F #5CB530 #30B589
monochromatic
#54164A #852375 #B5309F #D151BC #DE82CF

Accessibility & contrast

On white

5.40
#B5309F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B5309F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5309F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5309F#FFFFFF#000000##FFFFFF
##B5309F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA2
Deuteranopia (green-blind)
#60719C
Tritanopia (blue-blind)
#BE3A64
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b5309f;
/* rgb */ color: rgb(181, 48, 159);
/* oklch */ color: oklch(55.2% 0.205 335.6);
Tailwind
colors: {
  custom: {
    50: '#cf76bb',
    500: '#b5309f',
    950: '#000000',
  },
}
SCSS
$custom: #b5309f;
$custom-light: #cf76bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b5309f",
  "rgb": {
    "r": 181,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 309.925,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55177,
    "c": 0.20489,
    "h": 335.6
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#B5309F
secondary
#7AC787
accent
#E16046
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B5309F

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

Preview Lab → · Contrast checker → · Palette generator →

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