#B12DB6#B12DB6

#B12DB6 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.223 H 326.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B12DB6
RGBrgb(177, 45, 182)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 71%)
CMYKcmyk(2.7%, 75.3%, 0%, 28.6%)
CIE-LABlab(45.09, 67.45, -44.33)
CIE-LCHlch(45.09, 80.72, 326.69°)
OKLaboklab(55.61% 0.1858 -0.1232)
OKLCHoklch(55.61% 0.223 326.4)
XYZxyz(27.5128, 14.6032, 45.6165)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DB6 #32B62D
analogous
#6D2DB6 #B12DB6 #B62D77
triadic
#B12DB6 #B6B12D #2DB6B1
tetradic
#B12DB6 #B66D2D #32B62D #2D77B6
square
#B12DB6 #B66D2D #32B62D #2D77B6
split-complementary
#B12DB6 #77B62D #2DB66D
monochromatic
#521554 #812185 #B12DB6 #CE4DD3 #DC7EDF

Accessibility & contrast

On white

5.36
#B12DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B12DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DB6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DB6#FFFFFF#000000##FFFFFF
##B12DB61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4F70B3
Tritanopia (blue-blind)
#B64570
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12db6;
/* rgb */ color: rgb(177, 45, 182);
/* oklch */ color: oklch(55.6% 0.223 326.4);
Tailwind
colors: {
  custom: {
    50: '#cc75cc',
    500: '#b12db6',
    950: '#000000',
  },
}
SCSS
$custom: #b12db6;
$custom-light: #cc75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b12db6",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 297.81,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55606,
    "c": 0.22296,
    "h": 326.4
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#B12DB6
secondary
#7AC877
accent
#E3444A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B12DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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