#B12EB8#B12EB8

#B12EB8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.224 H 325.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B12EB8
RGBrgb(177, 46, 184)
HSLhsl(297, 60%, 45%)
HSVhsv(297, 75%, 72%)
CMYKcmyk(3.8%, 75%, 0%, 27.8%)
CIE-LABlab(45.31, 67.48, -45.15)
CIE-LCHlch(45.31, 81.19, 326.21°)
OKLaboklab(55.8% 0.1849 -0.1256)
OKLCHoklch(55.8% 0.224 325.8)
XYZxyz(27.7596, 14.7637, 46.7257)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12EB8 #35B82E
analogous
#6C2EB8 #B12EB8 #B82E7A
triadic
#B12EB8 #B8B12E #2EB8B1
tetradic
#B12EB8 #B86C2E #35B82E #2E7AB8
square
#B12EB8 #B86C2E #35B82E #2E7AB8
split-complementary
#B12EB8 #7AB82E #2EB86C
monochromatic
#531656 #822287 #B12EB8 #CD50D3 #DB81DF

Accessibility & contrast

On white

5.31
#B12EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B12EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12EB8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12EB8#FFFFFF#000000##FFFFFF
##B12EB81.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#B54671
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b12eb8;
/* rgb */ color: rgb(177, 46, 184);
/* oklch */ color: oklch(55.8% 0.224 325.8);
Tailwind
colors: {
  custom: {
    50: '#cc75ce',
    500: '#b12eb8',
    950: '#000000',
  },
}
SCSS
$custom: #b12eb8;
$custom-light: #cc75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b12eb8",
  "rgb": {
    "r": 177,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 296.957,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55802,
    "c": 0.22352,
    "h": 325.8
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#B12EB8
secondary
#7DC879
accent
#E3454D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B12EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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