#B12DAF#B12DAF

#B12DAF is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.218 H 328.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B12DAF
RGBrgb(177, 45, 175)
HSLhsl(301, 59%, 44%)
HSVhsv(301, 75%, 69%)
CMYKcmyk(0%, 74.6%, 1.1%, 30.6%)
CIE-LABlab(44.69, 66.31, -40.84)
CIE-LCHlch(44.69, 77.87, 328.37°)
OKLaboklab(55.2% 0.186 -0.1131)
OKLCHoklch(55.2% 0.218 328.7)
XYZxyz(26.8074, 14.3210, 41.9014)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DAF #2DB12F
analogous
#712DB1 #B12DAF #B12D6D
triadic
#B12DAF #AFB12D #2DAFB1
tetradic
#B12DAF #B1712D #2DB12F #2D6DB1
square
#B12DAF #B1712D #2DB12F #2D6DB1
split-complementary
#B12DAF #6DB12D #2DB171
monochromatic
#4F144F #80217F #B12DAF #D14ACF #DD7BDC

Accessibility & contrast

On white

5.44
#B12DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B12DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DAF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DAF#FFFFFF#000000##FFFFFF
##B12DAF1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135FB3
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#B7416C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b12daf;
/* rgb */ color: rgb(177, 45, 175);
/* oklch */ color: oklch(55.2% 0.218 328.7);
Tailwind
colors: {
  custom: {
    50: '#cc74c7',
    500: '#b12daf',
    950: '#000000',
  },
}
SCSS
$custom: #b12daf;
$custom-light: #cc74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b12daf",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 300.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55196,
    "c": 0.21763,
    "h": 328.7
  },
  "luminance": 0.14319
}

Semantic roles & 50–950 ramp

primary
#B12DAF
secondary
#74C675
accent
#E34845
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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