#B5308D#B5308D

#B5308D is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.193 H 342.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B5308D
RGBrgb(181, 48, 141)
HSLhsl(318, 58%, 45%)
HSVhsv(318, 73%, 71%)
CMYKcmyk(0%, 73.5%, 22.1%, 29%)
CIE-LABlab(44.04, 61.25, -21.45)
CIE-LCHlch(44.04, 64.89, 340.70°)
OKLaboklab(54.31% 0.1842 -0.0575)
OKLCHoklch(54.31% 0.193 342.7)
XYZxyz(24.9216, 13.8633, 26.5576)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5308D #30B558
analogous
#9B30B5 #B5308D #B5304B
triadic
#B5308D #8DB530 #308DB5
tetradic
#B5308D #B59B30 #30B558 #304BB5
square
#B5308D #B59B30 #30B558 #304BB5
split-complementary
#B5308D #4BB530 #30B59B
monochromatic
#541642 #852367 #B5308D #D151AB #DE82C2

Accessibility & contrast

On white

5.57
#B5308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B5308D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5308D
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5308D#FFFFFF#000000##FFFFFF
##B5308D1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A90
Deuteranopia (green-blind)
#67708A
Tritanopia (blue-blind)
#C1315B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5308d;
/* rgb */ color: rgb(181, 48, 141);
/* oklch */ color: oklch(54.3% 0.193 342.7);
Tailwind
colors: {
  custom: {
    50: '#cf75ae',
    500: '#b5308d',
    950: '#000000',
  },
}
SCSS
$custom: #b5308d;
$custom-light: #cf75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b5308d",
  "rgb": {
    "r": 181,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 318.045,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.19297,
    "h": 342.7
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#B5308D
secondary
#7AC791
accent
#E17546
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5308D

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

Preview Lab → · Contrast checker → · Palette generator →

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