#B12FA2#B12FA2

#B12FA2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.206 H 333.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B12FA2
RGBrgb(177, 47, 162)
HSLhsl(307, 58%, 44%)
HSVhsv(307, 73%, 69%)
CMYKcmyk(0%, 73.4%, 8.5%, 30.6%)
CIE-LABlab(44.22, 63.63, -33.86)
CIE-LCHlch(44.22, 72.07, 331.98°)
OKLaboklab(54.64% 0.1838 -0.0929)
OKLCHoklch(54.64% 0.206 333.2)
XYZxyz(25.6697, 13.9909, 35.5240)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FA2 #2FB13E
analogous
#7F2FB1 #B12FA2 #B12F61
triadic
#B12FA2 #A2B12F #2FA2B1
tetradic
#B12FA2 #B17F2F #2FB13E #2F61B1
square
#B12FA2 #B17F2F #2FB13E #2F61B1
split-complementary
#B12FA2 #61B12F #2FB17F
monochromatic
#501549 #812276 #B12FA2 #D04DC1 #DD7ED2

Accessibility & contrast

On white

5.53
#B12FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B12FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FA2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FA2#FFFFFF#000000##FFFFFF
##B12FA21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#B93C66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b12fa2;
/* rgb */ color: rgb(177, 47, 162);
/* oklch */ color: oklch(54.6% 0.206 333.2);
Tailwind
colors: {
  custom: {
    50: '#cc75be',
    500: '#b12fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b12fa2;
$custom-light: #cc75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fa2",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 306.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54635,
    "c": 0.20591,
    "h": 333.2
  },
  "luminance": 0.13989
}

Semantic roles & 50–950 ramp

primary
#B12FA2
secondary
#76C580
accent
#E15847
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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