#B12DA2#B12DA2

#B12DA2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.208 H 333.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B12DA2
RGBrgb(177, 45, 162)
HSLhsl(307, 59%, 44%)
HSVhsv(307, 75%, 69%)
CMYKcmyk(0%, 74.6%, 8.5%, 30.6%)
CIE-LABlab(43.99, 64.27, -34.21)
CIE-LCHlch(43.99, 72.81, 331.97°)
OKLaboklab(54.47% 0.1856 -0.0939)
OKLCHoklch(54.47% 0.208 333.2)
XYZxyz(25.5916, 13.8347, 35.4979)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DA2 #2DB13C
analogous
#7E2DB1 #B12DA2 #B12D60
triadic
#B12DA2 #A2B12D #2DA2B1
tetradic
#B12DA2 #B17E2D #2DB13C #2D60B1
square
#B12DA2 #B17E2D #2DB13C #2D60B1
split-complementary
#B12DA2 #60B12D #2DB17E
monochromatic
#4F1449 #802175 #B12DA2 #D14AC2 #DD7BD2

Accessibility & contrast

On white

5.58
#B12DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B12DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DA2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DA2#FFFFFF#000000##FFFFFF
##B12DA21.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#5A6F9F
Tritanopia (blue-blind)
#B93B65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12da2;
/* rgb */ color: rgb(177, 45, 162);
/* oklch */ color: oklch(54.5% 0.208 333.2);
Tailwind
colors: {
  custom: {
    50: '#cc74be',
    500: '#b12da2',
    950: '#000000',
  },
}
SCSS
$custom: #b12da2;
$custom-light: #cc74be;
$custom-dark: #000000;
JSON
{
  "hex": "#b12da2",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 306.818,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54473,
    "c": 0.20803,
    "h": 333.2
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#B12DA2
secondary
#74C67D
accent
#E35745
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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