#B12FD3#B12FD3

#B12FD3 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.6% C 0.244 H 318.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B12FD3
RGBrgb(177, 47, 211)
HSLhsl(288, 65%, 51%)
HSVhsv(288, 78%, 83%)
CMYKcmyk(16.1%, 77.7%, 0%, 17.3%)
CIE-LABlab(47.09, 71.90, -57.97)
CIE-LCHlch(47.09, 92.36, 321.12°)
OKLaboklab(57.59% 0.1815 -0.1631)
OKLCHoklch(57.59% 0.244 318.1)
XYZxyz(30.9042, 16.0847, 63.0922)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12FD3 #51D32F
analogous
#5F2FD3 #B12FD3 #D32FA3
triadic
#B12FD3 #D3B12F #2FD3B1
tetradic
#B12FD3 #D35F2F #51D32F #2FA3D3
square
#B12FD3 #D35F2F #51D32F #2FA3D3
split-complementary
#B12FD3 #A3D32F #2FD35F
monochromatic
#5E1870 #8822A2 #B12FD3 #C462DE #D794E8

Accessibility & contrast

On white

4.98
#B12FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B12FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12FD3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12FD3#FFFFFF#000000##FFFFFF
##B12FD31.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#3674CF
Tritanopia (blue-blind)
#B05481
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b12fd3;
/* rgb */ color: rgb(177, 47, 211);
/* oklch */ color: oklch(57.6% 0.244 318.1);
Tailwind
colors: {
  custom: {
    50: '#cd77e1',
    500: '#b12fd3',
    950: '#000000',
  },
}
SCSS
$custom: #b12fd3;
$custom-light: #cd77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b12fd3",
  "rgb": {
    "r": 177,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 287.561,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57594,
    "c": 0.24406,
    "h": 318.1
  },
  "luminance": 0.16083
}

Semantic roles & 50–950 ramp

primary
#B12FD3
secondary
#9AD38A
accent
#E84063
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B12FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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