#B12EB6#B12EB6

#B12EB6 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.222 H 326.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B12EB6
RGBrgb(177, 46, 182)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 71%)
CMYKcmyk(2.7%, 74.7%, 0%, 28.6%)
CIE-LABlab(45.19, 67.14, -44.16)
CIE-LCHlch(45.19, 80.36, 326.67°)
OKLaboklab(55.68% 0.185 -0.1227)
OKLCHoklch(55.68% 0.222 326.4)
XYZxyz(27.5514, 14.6804, 45.6294)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12EB6 #33B62E
analogous
#6D2EB6 #B12EB6 #B62E77
triadic
#B12EB6 #B6B12E #2EB6B1
tetradic
#B12EB6 #B66D2E #33B62E #2E77B6
square
#B12EB6 #B66D2E #33B62E #2E77B6
split-complementary
#B12EB6 #77B62E #2EB66D
monochromatic
#521554 #812285 #B12EB6 #CE4FD2 #DB80DF

Accessibility & contrast

On white

5.34
#B12EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B12EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12EB6
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12EB6#FFFFFF#000000##FFFFFF
##B12EB61.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4F71B3
Tritanopia (blue-blind)
#B64570
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12eb6;
/* rgb */ color: rgb(177, 46, 182);
/* oklch */ color: oklch(55.7% 0.222 326.4);
Tailwind
colors: {
  custom: {
    50: '#cc75cc',
    500: '#b12eb6',
    950: '#000000',
  },
}
SCSS
$custom: #b12eb6;
$custom-light: #cc75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b12eb6",
  "rgb": {
    "r": 177,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 297.794,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55682,
    "c": 0.22197,
    "h": 326.4
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#B12EB6
secondary
#7BC878
accent
#E3454B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B12EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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