#B5308E#B5308E

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

Color values

HEX#B5308E
RGBrgb(181, 48, 142)
HSLhsl(318, 58%, 45%)
HSVhsv(318, 73%, 71%)
CMYKcmyk(0%, 73.5%, 21.5%, 29%)
CIE-LABlab(44.08, 61.38, -21.99)
CIE-LCHlch(44.08, 65.20, 340.29°)
OKLaboklab(54.36% 0.1844 -0.059)
OKLCHoklch(54.36% 0.194 342.3)
XYZxyz(24.9963, 13.8932, 26.9512)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5308E #30B557
analogous
#9A30B5 #B5308E #B5304B
triadic
#B5308E #8EB530 #308EB5
tetradic
#B5308E #B59A30 #30B557 #304BB5
square
#B5308E #B59A30 #30B557 #304BB5
split-complementary
#B5308E #4BB530 #30B59A
monochromatic
#541642 #852368 #B5308E #D151AB #DE82C3

Accessibility & contrast

On white

5.56
#B5308E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5308E
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5308E#FFFFFF#000000##FFFFFF
##B5308E1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A91
Deuteranopia (green-blind)
#66708B
Tritanopia (blue-blind)
#C0315B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5308e;
/* rgb */ color: rgb(181, 48, 142);
/* oklch */ color: oklch(54.4% 0.194 342.3);
Tailwind
colors: {
  custom: {
    50: '#cf75af',
    500: '#b5308e',
    950: '#000000',
  },
}
SCSS
$custom: #b5308e;
$custom-light: #cf75af;
$custom-dark: #000000;
JSON
{
  "hex": "#b5308e",
  "rgb": {
    "r": 181,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 317.594,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.19359,
    "h": 342.3
  },
  "luminance": 0.13891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5308E

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

Preview Lab → · Contrast checker → · Palette generator →

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