#B12AAA#B12AAA

#B12AAA is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.217 H 330.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B12AAA
RGBrgb(177, 42, 170)
HSLhsl(303, 62%, 43%)
HSVhsv(303, 76%, 69%)
CMYKcmyk(0%, 76.3%, 4%, 30.6%)
CIE-LABlab(44.10, 66.42, -38.81)
CIE-LCHlch(44.10, 76.92, 329.70°)
OKLaboklab(54.68% 0.1885 -0.1072)
OKLCHoklch(54.68% 0.217 330.4)
XYZxyz(26.2150, 13.9074, 39.3261)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AAA #2AB131
analogous
#742AB1 #B12AAA #B12A66
triadic
#B12AAA #AAB12A #2AAAB1
tetradic
#B12AAA #B1742A #2AB131 #2A66B1
square
#B12AAA #B1742A #2AB131 #2A66B1
split-complementary
#B12AAA #66B12A #2AB174
monochromatic
#4E134B #801E7A #B12AAA #D345CC #DF77D9

Accessibility & contrast

On white

5.55
#B12AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B12AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AAA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AAA#FFFFFF#000000##FFFFFF
##B12AAA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185DAD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#B83D69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b12aaa;
/* rgb */ color: rgb(177, 42, 170);
/* oklch */ color: oklch(54.7% 0.217 330.4);
Tailwind
colors: {
  custom: {
    50: '#cc73c4',
    500: '#b12aaa',
    950: '#000000',
  },
}
SCSS
$custom: #b12aaa;
$custom-light: #cc73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aaa",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 303.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54685,
    "c": 0.21687,
    "h": 330.4
  },
  "luminance": 0.13905
}

Semantic roles & 50–950 ramp

primary
#B12AAA
secondary
#70C675
accent
#E54B43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B12AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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