#B8318B#B8318B

#B8318B is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.8% C 0.193 H 344.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B8318B
RGBrgb(184, 49, 139)
HSLhsl(320, 58%, 46%)
HSVhsv(320, 73%, 72%)
CMYKcmyk(0%, 73.4%, 24.5%, 27.8%)
CIE-LABlab(44.59, 61.41, -19.33)
CIE-LCHlch(44.59, 64.38, 342.53°)
OKLaboklab(54.79% 0.1856 -0.0515)
OKLCHoklch(54.79% 0.193 344.5)
XYZxyz(25.5267, 14.2538, 25.8280)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8318B #31B85E
analogous
#A131B8 #B8318B #B83147
triadic
#B8318B #8BB831 #318BB8
tetradic
#B8318B #B8A131 #31B85E #3147B8
square
#B8318B #B8A131 #31B85E #3147B8
split-complementary
#B8318B #47B831 #31B8A1
monochromatic
#571742 #882466 #B8318B #D255A8 #DE85C1

Accessibility & contrast

On white

5.45
#B8318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B8318B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8318B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8318B#FFFFFF#000000##FFFFFF
##B8318B1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8D
Deuteranopia (green-blind)
#6A7288
Tritanopia (blue-blind)
#C4305A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b8318b;
/* rgb */ color: rgb(184, 49, 139);
/* oklch */ color: oklch(54.8% 0.193 344.5);
Tailwind
colors: {
  custom: {
    50: '#d176ad',
    500: '#b8318b',
    950: '#000000',
  },
}
SCSS
$custom: #b8318b;
$custom-light: #d176ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b8318b",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 320,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54787,
    "c": 0.19262,
    "h": 344.5
  },
  "luminance": 0.14251
}

Semantic roles & 50–950 ramp

primary
#B8318B
secondary
#7DC896
accent
#E17A47
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8318B

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

Preview Lab → · Contrast checker → · Palette generator →

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