#B8318D#B8318D

#B8318D is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.9% C 0.194 H 343.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B8318D
RGBrgb(184, 49, 141)
HSLhsl(319, 58%, 46%)
HSVhsv(319, 73%, 72%)
CMYKcmyk(0%, 73.4%, 23.4%, 27.8%)
CIE-LABlab(44.68, 61.67, -20.42)
CIE-LCHlch(44.68, 64.96, 341.68°)
OKLaboklab(54.87% 0.186 -0.0545)
OKLCHoklch(54.87% 0.194 343.7)
XYZxyz(25.6742, 14.3127, 26.6047)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8318D #31B85C
analogous
#9F31B8 #B8318D #B83149
triadic
#B8318D #8DB831 #318DB8
tetradic
#B8318D #B89F31 #31B85C #3149B8
square
#B8318D #B89F31 #31B85C #3149B8
split-complementary
#B8318D #49B831 #31B89F
monochromatic
#571743 #882468 #B8318D #D255AA #DE85C2

Accessibility & contrast

On white

5.44
#B8318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B8318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8318D
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8318D#FFFFFF#000000##FFFFFF
##B8318D1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B90
Deuteranopia (green-blind)
#69728A
Tritanopia (blue-blind)
#C4315B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b8318d;
/* rgb */ color: rgb(184, 49, 141);
/* oklch */ color: oklch(54.9% 0.194 343.7);
Tailwind
colors: {
  custom: {
    50: '#d176ae',
    500: '#b8318d',
    950: '#000000',
  },
}
SCSS
$custom: #b8318d;
$custom-light: #d176ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b8318d",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 319.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54875,
    "c": 0.19382,
    "h": 343.7
  },
  "luminance": 0.1431
}

Semantic roles & 50–950 ramp

primary
#B8318D
secondary
#7DC895
accent
#E17847
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8318D

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

Preview Lab → · Contrast checker → · Palette generator →

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