#B12AAF#B12AAF

#B12AAF is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 55.0% C 0.221 H 328.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B12AAF
RGBrgb(177, 42, 175)
HSLhsl(301, 62%, 43%)
HSVhsv(301, 76%, 69%)
CMYKcmyk(0%, 76.3%, 1.1%, 30.6%)
CIE-LABlab(44.38, 67.21, -41.33)
CIE-LCHlch(44.38, 78.90, 328.41°)
OKLaboklab(54.97% 0.1885 -0.1145)
OKLCHoklch(54.97% 0.221 328.7)
XYZxyz(26.6970, 14.1002, 41.8646)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AAF #2AB12C
analogous
#6F2AB1 #B12AAF #B12A6B
triadic
#B12AAF #AFB12A #2AAFB1
tetradic
#B12AAF #B16F2A #2AB12C #2A6BB1
square
#B12AAF #B16F2A #2AB12C #2A6BB1
split-complementary
#B12AAF #6BB12A #2AB16F
monochromatic
#4E134D #801E7E #B12AAF #D345D1 #DF77DD

Accessibility & contrast

On white

5.50
#B12AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B12AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AAF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AAF#FFFFFF#000000##FFFFFF
##B12AAF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB3
Deuteranopia (green-blind)
#526FAC
Tritanopia (blue-blind)
#B73F6B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b12aaf;
/* rgb */ color: rgb(177, 42, 175);
/* oklch */ color: oklch(55.0% 0.221 328.7);
Tailwind
colors: {
  custom: {
    50: '#cc73c7',
    500: '#b12aaf',
    950: '#000000',
  },
}
SCSS
$custom: #b12aaf;
$custom-light: #cc73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aaf",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 300.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54972,
    "c": 0.22056,
    "h": 328.7
  },
  "luminance": 0.14098
}

Semantic roles & 50–950 ramp

primary
#B12AAF
secondary
#70C672
accent
#E54543
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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