#B12EB2#B12EB2

#B12EB2 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.219 H 327.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B12EB2
RGBrgb(177, 46, 178)
HSLhsl(300, 59%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0.6%, 74.2%, 0%, 30.2%)
CIE-LABlab(44.97, 66.48, -42.17)
CIE-LCHlch(44.97, 78.73, 327.61°)
OKLaboklab(55.45% 0.1851 -0.1169)
OKLCHoklch(55.45% 0.219 327.7)
XYZxyz(27.1440, 14.5174, 43.4833)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12EB2 #2FB22E
analogous
#6F2EB2 #B12EB2 #B22E71
triadic
#B12EB2 #B2B12E #2EB2B1
tetradic
#B12EB2 #B26F2E #2FB22E #2E71B2
square
#B12EB2 #B26F2E #2FB22E #2E71B2
split-complementary
#B12EB2 #71B22E #2EB26F
monochromatic
#501551 #812181 #B12EB2 #D04CD1 #DD7DDD

Accessibility & contrast

On white

5.38
#B12EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B12EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12EB2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12EB2#FFFFFF#000000##FFFFFF
##B12EB21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E60B6
Deuteranopia (green-blind)
#5270AF
Tritanopia (blue-blind)
#B6436E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b12eb2;
/* rgb */ color: rgb(177, 46, 178);
/* oklch */ color: oklch(55.4% 0.219 327.7);
Tailwind
colors: {
  custom: {
    50: '#cc75c9',
    500: '#b12eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b12eb2;
$custom-light: #cc75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b12eb2",
  "rgb": {
    "r": 177,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 299.545,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.2189,
    "h": 327.7
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#B12EB2
secondary
#76C676
accent
#E24647
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B12EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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