#B5308C#B5308C

#B5308C is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.3% C 0.192 H 343.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B5308C
RGBrgb(181, 48, 140)
HSLhsl(318, 58%, 45%)
HSVhsv(318, 73%, 71%)
CMYKcmyk(0%, 73.5%, 22.7%, 29%)
CIE-LABlab(43.99, 61.11, -20.91)
CIE-LCHlch(43.99, 64.59, 341.11°)
OKLaboklab(54.27% 0.184 -0.056)
OKLCHoklch(54.27% 0.192 343.1)
XYZxyz(24.8475, 13.8337, 26.1675)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5308C #30B559
analogous
#9B30B5 #B5308C #B5304A
triadic
#B5308C #8CB530 #308CB5
tetradic
#B5308C #B59B30 #30B559 #304AB5
square
#B5308C #B59B30 #30B559 #304AB5
split-complementary
#B5308C #4AB530 #30B59B
monochromatic
#541641 #852367 #B5308C #D151AA #DE82C1

Accessibility & contrast

On white

5.58
#B5308C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5308C
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5308C#FFFFFF#000000##FFFFFF
##B5308C1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5A8F
Deuteranopia (green-blind)
#677089
Tritanopia (blue-blind)
#C1305A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b5308c;
/* rgb */ color: rgb(181, 48, 140);
/* oklch */ color: oklch(54.3% 0.192 343.1);
Tailwind
colors: {
  custom: {
    50: '#cf75ad',
    500: '#b5308c',
    950: '#000000',
  },
}
SCSS
$custom: #b5308c;
$custom-light: #cf75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b5308c",
  "rgb": {
    "r": 181,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 318.496,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54266,
    "c": 0.19235,
    "h": 343.1
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#B5308C
secondary
#7AC792
accent
#E17646
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5308C

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

Preview Lab → · Contrast checker → · Palette generator →

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