#B12FAC#B12FAC

#B12FAC is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.213 H 329.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B12FAC
RGBrgb(177, 47, 172)
HSLhsl(302, 58%, 44%)
HSVhsv(302, 73%, 69%)
CMYKcmyk(0%, 73.4%, 2.8%, 30.6%)
CIE-LABlab(44.75, 65.19, -38.97)
CIE-LCHlch(44.75, 75.95, 329.13°)
OKLaboklab(55.18% 0.1841 -0.1077)
OKLCHoklch(55.18% 0.213 329.7)
XYZxyz(26.5942, 14.3607, 40.3929)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FAC #2FB134
analogous
#752FB1 #B12FAC #B12F6B
triadic
#B12FAC #ACB12F #2FACB1
tetradic
#B12FAC #B1752F #2FB134 #2F6BB1
square
#B12FAC #B1752F #2FB134 #2F6BB1
split-complementary
#B12FAC #6BB12F #2FB175
monochromatic
#50154E #81227D #B12FAC #D04DCB #DD7ED9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B12FAC#FFFFFF#000000##FFFFFF
##B12FAC1.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)
#1D5FAF
Deuteranopia (green-blind)
#5570A9
Tritanopia (blue-blind)
#B7416B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b12fac;
/* rgb */ color: rgb(177, 47, 172);
/* oklch */ color: oklch(55.2% 0.213 329.7);
Tailwind
colors: {
  custom: {
    50: '#cc75c5',
    500: '#b12fac',
    950: '#000000',
  },
}
SCSS
$custom: #b12fac;
$custom-light: #cc75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fac",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 302.308,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55183,
    "c": 0.21331,
    "h": 329.7
  },
  "luminance": 0.14359
}

Semantic roles & 50–950 ramp

primary
#B12FAC
secondary
#76C579
accent
#E14C47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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