#B5398E#B5398E

#B5398E is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.2% C 0.183 H 342.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B5398E
RGBrgb(181, 57, 142)
HSLhsl(319, 52%, 47%)
HSVhsv(319, 69%, 71%)
CMYKcmyk(0%, 68.5%, 21.5%, 29%)
CIE-LABlab(45.23, 58.15, -20.22)
CIE-LCHlch(45.23, 61.57, 340.83°)
OKLaboklab(55.19% 0.1745 -0.0541)
OKLCHoklch(55.19% 0.183 342.8)
XYZxyz(25.4025, 14.7055, 27.0866)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5398E #39B560
analogous
#9E39B5 #B5398E #B53950
triadic
#B5398E #8EB539 #398EB5
tetradic
#B5398E #B59E39 #39B560 #3950B5
square
#B5398E #B59E39 #39B560 #3950B5
split-complementary
#B5398E #50B539 #39B59E
monochromatic
#581C45 #862A69 #B5398E #CD5FAA #DB8DC3

Accessibility & contrast

On white

5.33
#B5398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B5398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5398E
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5398E#FFFFFF#000000##FFFFFF
##B5398E1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445E90
Deuteranopia (green-blind)
#6A728B
Tritanopia (blue-blind)
#C03A5E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5398e;
/* rgb */ color: rgb(181, 57, 142);
/* oklch */ color: oklch(55.2% 0.183 342.8);
Tailwind
colors: {
  custom: {
    50: '#cf79af',
    500: '#b5398e',
    950: '#000000',
  },
}
SCSS
$custom: #b5398e;
$custom-light: #cf79af;
$custom-dark: #000000;
JSON
{
  "hex": "#b5398e",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 318.871,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.18272,
    "h": 342.8
  },
  "luminance": 0.14703
}

Semantic roles & 50–950 ramp

primary
#B5398E
secondary
#84C699
accent
#DC794C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140A10
muted
#837C7F

Preview Lab

Preview with #B5398E

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

Preview Lab → · Contrast checker → · Palette generator →

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