#B151D3#B151D3

#B151D3 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 60.9% C 0.204 H 316.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B151D3
RGBrgb(177, 81, 211)
HSLhsl(284, 60%, 57%)
HSVhsv(284, 62%, 83%)
CMYKcmyk(16.1%, 61.6%, 0%, 17.3%)
CIE-LABlab(51.77, 58.73, -50.47)
CIE-LCHlch(51.77, 77.43, 319.33°)
OKLaboklab(60.94% 0.1474 -0.1414)
OKLCHoklch(60.94% 0.204 316.2)
XYZxyz(32.8300, 19.9363, 63.7341)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D3 #73D351
analogous
#7051D3 #B151D3 #D351B4
triadic
#B151D3 #D3B151 #51D3B1
tetradic
#B151D3 #D37051 #73D351 #51B4D3
square
#B151D3 #D37051 #73D351 #51B4D3
split-complementary
#B151D3 #B4D351 #51D370
monochromatic
#6D2287 #942FB8 #B151D3 #C782DF #DDB3EC

Accessibility & contrast

On white

4.21
#B151D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#B151D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D3
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D3#FFFFFF#000000##000000
##B151D31.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2776D7
Deuteranopia (green-blind)
#527ED0
Tritanopia (blue-blind)
#AF688B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b151d3;
/* rgb */ color: rgb(177, 81, 211);
/* oklch */ color: oklch(60.9% 0.204 316.2);
Tailwind
colors: {
  custom: {
    50: '#cb87e1',
    500: '#b151d3',
    950: '#000000',
  },
}
SCSS
$custom: #b151d3;
$custom-light: #cb87e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d3",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 284.308,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60942,
    "c": 0.20424,
    "h": 316.2
  },
  "luminance": 0.19935
}

Semantic roles & 50–950 ramp

primary
#B151D3
secondary
#B3DAA6
accent
#E3456E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151D3

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

Preview Lab → · Contrast checker → · Palette generator →

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