#B12DB7#B12DB7

#B12DB7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.224 H 326.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B12DB7
RGBrgb(177, 45, 183)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 75%, 72%)
CMYKcmyk(3.3%, 75.4%, 0%, 28.2%)
CIE-LABlab(45.14, 67.62, -44.83)
CIE-LCHlch(45.14, 81.13, 326.46°)
OKLaboklab(55.67% 0.1858 -0.1247)
OKLCHoklch(55.67% 0.224 326.1)
XYZxyz(27.6165, 14.6447, 46.1627)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DB7 #33B72D
analogous
#6C2DB7 #B12DB7 #B72D78
triadic
#B12DB7 #B7B12D #2DB7B1
tetradic
#B12DB7 #B76C2D #33B72D #2D78B7
square
#B12DB7 #B76C2D #33B72D #2D78B7
split-complementary
#B12DB7 #78B72D #2DB76C
monochromatic
#521555 #812186 #B12DB7 #CE4ED3 #DB7FDF

Accessibility & contrast

On white

5.35
#B12DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B12DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DB7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DB7#FFFFFF#000000##FFFFFF
##B12DB71.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4E70B4
Tritanopia (blue-blind)
#B64571
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12db7;
/* rgb */ color: rgb(177, 45, 183);
/* oklch */ color: oklch(55.7% 0.224 326.1);
Tailwind
colors: {
  custom: {
    50: '#cc75cd',
    500: '#b12db7',
    950: '#000000',
  },
}
SCSS
$custom: #b12db7;
$custom-light: #cc75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b12db7",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 297.391,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55666,
    "c": 0.22373,
    "h": 326.1
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#B12DB7
secondary
#7BC878
accent
#E4444B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B12DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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