#B5308F#B5308F

#B5308F is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.4% C 0.194 H 341.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B5308F
RGBrgb(181, 48, 143)
HSLhsl(317, 58%, 45%)
HSVhsv(317, 73%, 71%)
CMYKcmyk(0%, 73.5%, 21%, 29%)
CIE-LABlab(44.12, 61.52, -22.53)
CIE-LCHlch(44.12, 65.51, 339.89°)
OKLaboklab(54.4% 0.1846 -0.0605)
OKLCHoklch(54.4% 0.194 341.8)
XYZxyz(25.0718, 13.9234, 27.3484)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5308F #30B556
analogous
#9930B5 #B5308F #B5304C
triadic
#B5308F #8FB530 #308FB5
tetradic
#B5308F #B59930 #30B556 #304CB5
square
#B5308F #B59930 #30B556 #304CB5
split-complementary
#B5308F #4CB530 #30B599
monochromatic
#541643 #852369 #B5308F #D151AC #DE82C3

Accessibility & contrast

On white

5.55
#B5308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B5308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5308F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5308F#FFFFFF#000000##FFFFFF
##B5308F1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A92
Deuteranopia (green-blind)
#66708C
Tritanopia (blue-blind)
#C0325C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5308f;
/* rgb */ color: rgb(181, 48, 143);
/* oklch */ color: oklch(54.4% 0.194 341.8);
Tailwind
colors: {
  custom: {
    50: '#cf75b0',
    500: '#b5308f',
    950: '#000000',
  },
}
SCSS
$custom: #b5308f;
$custom-light: #cf75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b5308f",
  "rgb": {
    "r": 181,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 317.143,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54402,
    "c": 0.19422,
    "h": 341.8
  },
  "luminance": 0.13921
}

Semantic roles & 50–950 ramp

primary
#B5308F
secondary
#7AC790
accent
#E17346
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5308F

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

Preview Lab → · Contrast checker → · Palette generator →

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