#B12DB9#B12DB9

#B12DB9 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.225 H 325.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B12DB9
RGBrgb(177, 45, 185)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 73%)
CMYKcmyk(4.3%, 75.7%, 0%, 27.5%)
CIE-LABlab(45.26, 67.95, -45.81)
CIE-LCHlch(45.26, 81.95, 326.01°)
OKLaboklab(55.79% 0.1857 -0.1275)
OKLCHoklch(55.79% 0.225 325.5)
XYZxyz(27.8262, 14.7285, 47.2668)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DB9 #35B92D
analogous
#6B2DB9 #B12DB9 #B92D7B
triadic
#B12DB9 #B9B12D #2DB9B1
tetradic
#B12DB9 #B96B2D #35B92D #2D7BB9
square
#B12DB9 #B96B2D #35B92D #2D7BB9
split-complementary
#B12DB9 #7BB92D #2DB96B
monochromatic
#531557 #822188 #B12DB9 #CD4FD4 #DB80E0

Accessibility & contrast

On white

5.32
#B12DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B12DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DB9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DB9#FFFFFF#000000##FFFFFF
##B12DB91.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#4D71B6
Tritanopia (blue-blind)
#B54672
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12db9;
/* rgb */ color: rgb(177, 45, 185);
/* oklch */ color: oklch(55.8% 0.225 325.5);
Tailwind
colors: {
  custom: {
    50: '#cc75cf',
    500: '#b12db9',
    950: '#000000',
  },
}
SCSS
$custom: #b12db9;
$custom-light: #cc75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b12db9",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 296.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55786,
    "c": 0.22528,
    "h": 325.5
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#B12DB9
secondary
#7DC979
accent
#E4444D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B12DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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