#B12DCC#B12DCC

#B12DCC is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 57.0% C 0.240 H 320.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B12DCC
RGBrgb(177, 45, 204)
HSLhsl(290, 64%, 49%)
HSVhsv(290, 78%, 80%)
CMYKcmyk(13.2%, 77.9%, 0%, 20%)
CIE-LABlab(46.43, 71.23, -55.00)
CIE-LCHlch(46.43, 90.00, 322.33°)
OKLaboklab(56.98% 0.184 -0.1544)
OKLCHoklch(56.98% 0.24 320)
XYZxyz(29.9676, 15.5851, 58.5448)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DCC #48CC2D
analogous
#622DCC #B12DCC #CC2D98
triadic
#B12DCC #CCB12D #2DCCB1
tetradic
#B12DCC #CC622D #48CC2D #2D98CC
square
#B12DCC #CC622D #48CC2D #2D98CC
split-complementary
#B12DCC #98CC2D #2DCC62
monochromatic
#5A1768 #85229A #B12DCC #C55BDB #D78DE6

Accessibility & contrast

On white

5.10
#B12DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B12DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DCC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DCC#FFFFFF#000000##FFFFFF
##B12DCC1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#3D72C9
Tritanopia (blue-blind)
#B14F7D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b12dcc;
/* rgb */ color: rgb(177, 45, 204);
/* oklch */ color: oklch(57.0% 0.240 320.0);
Tailwind
colors: {
  custom: {
    50: '#cd76dc',
    500: '#b12dcc',
    950: '#000000',
  },
}
SCSS
$custom: #b12dcc;
$custom-light: #cd76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b12dcc",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 289.811,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.24023,
    "h": 320
  },
  "luminance": 0.15584
}

Semantic roles & 50–950 ramp

primary
#B12DCC
secondary
#91D085
accent
#E7415D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B12DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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