#B12FAF#B12FAF

#B12FAF is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.216 H 328.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B12FAF
RGBrgb(177, 47, 175)
HSLhsl(301, 58%, 44%)
HSVhsv(301, 73%, 69%)
CMYKcmyk(0%, 73.4%, 1.1%, 30.6%)
CIE-LABlab(44.91, 65.68, -40.49)
CIE-LCHlch(44.91, 77.15, 328.35°)
OKLaboklab(55.35% 0.1842 -0.1121)
OKLCHoklch(55.35% 0.216 328.7)
XYZxyz(26.8856, 14.4773, 41.9275)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FAF #2FB131
analogous
#722FB1 #B12FAF #B12F6E
triadic
#B12FAF #AFB12F #2FAFB1
tetradic
#B12FAF #B1722F #2FB131 #2F6EB1
square
#B12FAF #B1722F #2FB131 #2F6EB1
split-complementary
#B12FAF #6EB12F #2FB172
monochromatic
#50154F #81227F #B12FAF #D04DCE #DD7EDB

Accessibility & contrast

On white

5.39
#B12FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B12FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FAF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FAF#FFFFFF#000000##FFFFFF
##B12FAF1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB2
Deuteranopia (green-blind)
#5470AC
Tritanopia (blue-blind)
#B7426D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b12faf;
/* rgb */ color: rgb(177, 47, 175);
/* oklch */ color: oklch(55.4% 0.216 328.7);
Tailwind
colors: {
  custom: {
    50: '#cc75c7',
    500: '#b12faf',
    950: '#000000',
  },
}
SCSS
$custom: #b12faf;
$custom-light: #cc75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b12faf",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 300.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55353,
    "c": 0.21558,
    "h": 328.7
  },
  "luminance": 0.14475
}

Semantic roles & 50–950 ramp

primary
#B12FAF
secondary
#76C578
accent
#E14947
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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