#B12DB8#B12DB8

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

Color values

HEX#B12DB8
RGBrgb(177, 45, 184)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 72%)
CMYKcmyk(3.8%, 75.5%, 0%, 27.8%)
CIE-LABlab(45.20, 67.78, -45.32)
CIE-LCHlch(45.20, 81.54, 326.23°)
OKLaboklab(55.73% 0.1857 -0.1261)
OKLCHoklch(55.73% 0.225 325.8)
XYZxyz(27.7210, 14.6865, 46.7128)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DB8 #34B82D
analogous
#6B2DB8 #B12DB8 #B82D7A
triadic
#B12DB8 #B8B12D #2DB8B1
tetradic
#B12DB8 #B86B2D #34B82D #2D7AB8
square
#B12DB8 #B86B2D #34B82D #2D7AB8
split-complementary
#B12DB8 #7AB82D #2DB86B
monochromatic
#521556 #822187 #B12DB8 #CD4ED4 #DB80E0

Accessibility & contrast

On white

5.33
#B12DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B12DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DB8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DB8#FFFFFF#000000##FFFFFF
##B12DB81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4D70B5
Tritanopia (blue-blind)
#B54671
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12db8;
/* rgb */ color: rgb(177, 45, 184);
/* oklch */ color: oklch(55.7% 0.225 325.8);
Tailwind
colors: {
  custom: {
    50: '#cc75ce',
    500: '#b12db8',
    950: '#000000',
  },
}
SCSS
$custom: #b12db8;
$custom-light: #cc75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b12db8",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 296.978,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55726,
    "c": 0.2245,
    "h": 325.8
  },
  "luminance": 0.14685
}

Semantic roles & 50–950 ramp

primary
#B12DB8
secondary
#7CC978
accent
#E4444C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B12DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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