#B12DCD#B12DCD

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

Color values

HEX#B12DCD
RGBrgb(177, 45, 205)
HSLhsl(290, 64%, 49%)
HSVhsv(290, 78%, 80%)
CMYKcmyk(13.7%, 78%, 0%, 19.6%)
CIE-LABlab(46.49, 71.41, -55.48)
CIE-LCHlch(46.49, 90.43, 322.16°)
OKLaboklab(57.05% 0.1839 -0.1558)
OKLCHoklch(57.05% 0.241 319.7)
XYZxyz(30.0879, 15.6332, 59.1784)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12DCD #49CD2D
analogous
#612DCD #B12DCD #CD2D99
triadic
#B12DCD #CDB12D #2DCDB1
tetradic
#B12DCD #CD612D #49CD2D #2D99CD
square
#B12DCD #CD612D #49CD2D #2D99CD
split-complementary
#B12DCD #99CD2D #2DCD61
monochromatic
#5A1769 #86229B #B12DCD #C55CDB #D78EE6

Accessibility & contrast

On white

5.09
#B12DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B12DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12DCD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12DCD#FFFFFF#000000##FFFFFF
##B12DCD1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#3C72CA
Tritanopia (blue-blind)
#B1507D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b12dcd;
/* rgb */ color: rgb(177, 45, 205);
/* oklch */ color: oklch(57.0% 0.241 319.7);
Tailwind
colors: {
  custom: {
    50: '#cd76dd',
    500: '#b12dcd',
    950: '#000000',
  },
}
SCSS
$custom: #b12dcd;
$custom-light: #cd76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b12dcd",
  "rgb": {
    "r": 177,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 289.5,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.24102,
    "h": 319.7
  },
  "luminance": 0.15632
}

Semantic roles & 50–950 ramp

primary
#B12DCD
secondary
#92D185
accent
#E7415E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B12DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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