#B12AA2#B12AA2

#B12AA2 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.211 H 333.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B12AA2
RGBrgb(177, 42, 162)
HSLhsl(307, 62%, 43%)
HSVhsv(307, 76%, 69%)
CMYKcmyk(0%, 76.3%, 8.5%, 30.6%)
CIE-LABlab(43.67, 65.19, -34.72)
CIE-LCHlch(43.67, 73.85, 331.96°)
OKLaboklab(54.24% 0.1883 -0.0953)
OKLCHoklch(54.24% 0.211 333.2)
XYZxyz(25.4812, 13.6139, 35.4611)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12AA2 #2AB139
analogous
#7D2AB1 #B12AA2 #B12A5E
triadic
#B12AA2 #A2B12A #2AA2B1
tetradic
#B12AA2 #B17D2A #2AB139 #2A5EB1
square
#B12AA2 #B17D2A #2AB139 #2A5EB1
split-complementary
#B12AA2 #5EB12A #2AB17D
monochromatic
#4E1347 #801E75 #B12AA2 #D345C3 #DF77D3

Accessibility & contrast

On white

5.64
#B12AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B12AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12AA2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12AA2#FFFFFF#000000##FFFFFF
##B12AA21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#B93964
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b12aa2;
/* rgb */ color: rgb(177, 42, 162);
/* oklch */ color: oklch(54.2% 0.211 333.2);
Tailwind
colors: {
  custom: {
    50: '#cc73be',
    500: '#b12aa2',
    950: '#000000',
  },
}
SCSS
$custom: #b12aa2;
$custom-light: #cc73be;
$custom-dark: #000000;
JSON
{
  "hex": "#b12aa2",
  "rgb": {
    "r": 177,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 306.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.21108,
    "h": 333.2
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#B12AA2
secondary
#70C67A
accent
#E55543
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B12AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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