#B8318F#B8318F

#B8318F is a mid, vivid pink. Relative luminance 0.144; OKLCH L 55.0% C 0.195 H 342.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B8318F
RGBrgb(184, 49, 143)
HSLhsl(318, 58%, 46%)
HSVhsv(318, 73%, 72%)
CMYKcmyk(0%, 73.4%, 22.3%, 27.8%)
CIE-LABlab(44.76, 61.93, -21.50)
CIE-LCHlch(44.76, 65.56, 340.86°)
OKLaboklab(54.97% 0.1864 -0.0576)
OKLCHoklch(54.97% 0.195 342.8)
XYZxyz(25.8243, 14.3728, 27.3955)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8318F #31B85A
analogous
#9D31B8 #B8318F #B8314B
triadic
#B8318F #8FB831 #318FB8
tetradic
#B8318F #B89D31 #31B85A #314BB8
square
#B8318F #B89D31 #31B85A #314BB8
split-complementary
#B8318F #4BB831 #31B89D
monochromatic
#571744 #882469 #B8318F #D255AC #DE85C3

Accessibility & contrast

On white

5.42
#B8318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B8318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8318F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8318F#FFFFFF#000000##FFFFFF
##B8318F1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5C92
Deuteranopia (green-blind)
#69728C
Tritanopia (blue-blind)
#C4325C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b8318f;
/* rgb */ color: rgb(184, 49, 143);
/* oklch */ color: oklch(55.0% 0.195 342.8);
Tailwind
colors: {
  custom: {
    50: '#d176b0',
    500: '#b8318f',
    950: '#000000',
  },
}
SCSS
$custom: #b8318f;
$custom-light: #d176b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b8318f",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 318.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54965,
    "c": 0.19505,
    "h": 342.8
  },
  "luminance": 0.1437
}

Semantic roles & 50–950 ramp

primary
#B8318F
secondary
#7DC894
accent
#E17647
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8318F

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

Preview Lab → · Contrast checker → · Palette generator →

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