#B31795#B31795

#B31795 is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.8% C 0.219 H 338.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#B31795
RGBrgb(179, 23, 149)
HSLhsl(312, 77%, 40%)
HSVhsv(312, 87%, 70%)
CMYKcmyk(0%, 87.2%, 16.8%, 29.8%)
CIE-LABlab(41.80, 68.31, -29.82)
CIE-LCHlch(41.80, 74.54, 336.42°)
OKLaboklab(52.75% 0.203 -0.0811)
OKLCHoklch(52.75% 0.219 338.2)
XYZxyz(24.3223, 12.3689, 29.5345)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31795 #17B335
analogous
#8317B3 #B31795 #B31747
triadic
#B31795 #95B317 #1795B3
tetradic
#B31795 #B38317 #17B335 #1747B3
square
#B31795 #B38317 #17B335 #1747B3
split-complementary
#B31795 #47B317 #17B383
monochromatic
#47093B #7D1068 #B31795 #E324BE #EA5BCE

Accessibility & contrast

On white

6.05
#B31795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B31795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31795
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31795#FFFFFF#000000##FFFFFF
##B317951.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225498
Deuteranopia (green-blind)
#5B6B92
Tritanopia (blue-blind)
#BD2359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31795;
/* rgb */ color: rgb(179, 23, 149);
/* oklch */ color: oklch(52.8% 0.219 338.2);
Tailwind
colors: {
  custom: {
    50: '#ce6db4',
    500: '#b31795',
    950: '#000000',
  },
}
SCSS
$custom: #b31795;
$custom-light: #ce6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31795",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 311.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.21862,
    "h": 338.2
  },
  "luminance": 0.12366
}

Semantic roles & 50–950 ramp

primary
#B31795
secondary
#58CD6F
accent
#F45934
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31795

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

Preview Lab → · Contrast checker → · Palette generator →

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