#B12799#B12799

#B12799 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.5% C 0.208 H 336.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B12799
RGBrgb(177, 39, 153)
HSLhsl(310, 64%, 42%)
HSVhsv(310, 78%, 69%)
CMYKcmyk(0%, 78%, 13.6%, 30.6%)
CIE-LABlab(42.91, 64.73, -30.51)
CIE-LCHlch(42.91, 71.56, 334.77°)
OKLaboklab(53.55% 0.1904 -0.0832)
OKLCHoklch(53.55% 0.208 336.4)
XYZxyz(24.6072, 13.1004, 31.3635)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12799 #27B13F
analogous
#8427B1 #B12799 #B12754
triadic
#B12799 #99B127 #2799B1
tetradic
#B12799 #B18427 #27B13F #2754B1
square
#B12799 #B18427 #27B13F #2754B1
split-complementary
#B12799 #54B127 #27B184
monochromatic
#4D1142 #7F1C6E #B12799 #D540BB #E072CD

Accessibility & contrast

On white

5.80
#B12799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B12799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12799
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12799#FFFFFF#000000##FFFFFF
##B127991.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589C
Deuteranopia (green-blind)
#5C6D96
Tritanopia (blue-blind)
#BA325E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b12799;
/* rgb */ color: rgb(177, 39, 153);
/* oklch */ color: oklch(53.5% 0.208 336.4);
Tailwind
colors: {
  custom: {
    50: '#cc71b7',
    500: '#b12799',
    950: '#000000',
  },
}
SCSS
$custom: #b12799;
$custom-light: #cc71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#b12799",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 310.435,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53549,
    "c": 0.20774,
    "h": 336.4
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#B12799
secondary
#6DC77C
accent
#E75E41
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B12799

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

Preview Lab → · Contrast checker → · Palette generator →

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