#B8318A#B8318A

#B8318A is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.7% C 0.192 H 344.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B8318A
RGBrgb(184, 49, 138)
HSLhsl(320, 58%, 46%)
HSVhsv(320, 73%, 72%)
CMYKcmyk(0%, 73.4%, 25%, 27.8%)
CIE-LABlab(44.55, 61.28, -18.79)
CIE-LCHlch(44.55, 64.10, 342.95°)
OKLaboklab(54.74% 0.1854 -0.05)
OKLCHoklch(54.74% 0.192 344.9)
XYZxyz(25.4540, 14.2247, 25.4450)
Luminance0.1422 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8318A #31B85F
analogous
#A231B8 #B8318A #B83147
triadic
#B8318A #8AB831 #318AB8
tetradic
#B8318A #B8A231 #31B85F #3147B8
square
#B8318A #B8A231 #31B85F #3147B8
split-complementary
#B8318A #47B831 #31B8A2
monochromatic
#571742 #882466 #B8318A #D255A7 #DE85C0

Accessibility & contrast

On white

5.46
#B8318A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B8318A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8318A
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8318A#FFFFFF#000000##FFFFFF
##B8318A1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#6A7287
Tritanopia (blue-blind)
#C42F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b8318a;
/* rgb */ color: rgb(184, 49, 138);
/* oklch */ color: oklch(54.7% 0.192 344.9);
Tailwind
colors: {
  custom: {
    50: '#d176ac',
    500: '#b8318a',
    950: '#000000',
  },
}
SCSS
$custom: #b8318a;
$custom-light: #d176ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b8318a",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 320.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54744,
    "c": 0.19203,
    "h": 344.9
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8318A

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

Preview Lab → · Contrast checker → · Palette generator →

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