#B2318E#B2318E

#B2318E is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.0% C 0.190 H 341.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B2318E
RGBrgb(178, 49, 142)
HSLhsl(317, 57%, 45%)
HSVhsv(317, 72%, 70%)
CMYKcmyk(0%, 72.5%, 20.2%, 30.2%)
CIE-LABlab(43.68, 60.29, -22.65)
CIE-LCHlch(43.68, 64.40, 339.41°)
OKLaboklab(53.97% 0.1805 -0.0609)
OKLCHoklch(53.97% 0.19 341.4)
XYZxyz(24.3416, 13.6170, 26.9323)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2318E #31B255
analogous
#9631B2 #B2318E #B2314E
triadic
#B2318E #8EB231 #318EB2
tetradic
#B2318E #B29631 #31B255 #314EB2
square
#B2318E #B29631 #31B255 #314EB2
split-complementary
#B2318E #4EB231 #31B296
monochromatic
#521741 #822468 #B2318E #CF51AC #DC81C3

Accessibility & contrast

On white

5.64
#B2318E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B2318E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2318E
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2318E#FFFFFF#000000##FFFFFF
##B2318E1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#646F8B
Tritanopia (blue-blind)
#BD335B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b2318e;
/* rgb */ color: rgb(178, 49, 142);
/* oklch */ color: oklch(54.0% 0.190 341.4);
Tailwind
colors: {
  custom: {
    50: '#cd75af',
    500: '#b2318e',
    950: '#000000',
  },
}
SCSS
$custom: #b2318e;
$custom-light: #cd75af;
$custom-dark: #000000;
JSON
{
  "hex": "#b2318e",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 316.744,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.19048,
    "h": 341.4
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#B2318E
secondary
#79C58F
accent
#E07248
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2318E

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

Preview Lab → · Contrast checker → · Palette generator →

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