#B151D5#B151D5

#B151D5 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.1% C 0.206 H 315.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B151D5
RGBrgb(177, 81, 213)
HSLhsl(284, 61%, 58%)
HSVhsv(284, 62%, 84%)
CMYKcmyk(16.9%, 62%, 0%, 16.5%)
CIE-LABlab(51.88, 59.13, -51.42)
CIE-LCHlch(51.88, 78.36, 318.99°)
OKLaboklab(61.06% 0.1474 -0.1442)
OKLCHoklch(61.06% 0.206 315.6)
XYZxyz(33.0823, 20.0372, 65.0628)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D5 #75D551
analogous
#6F51D5 #B151D5 #D551B7
triadic
#B151D5 #D5B151 #51D5B1
tetradic
#B151D5 #D56F51 #75D551 #51B7D5
square
#B151D5 #D56F51 #75D551 #51B7D5
split-complementary
#B151D5 #B7D551 #51D56F
monochromatic
#6E218A #952DBC #B151D5 #C782E1 #DDB4ED

Accessibility & contrast

On white

4.19
#B151D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B151D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D5#FFFFFF#000000##000000
##B151D51.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2476D9
Deuteranopia (green-blind)
#507ED2
Tritanopia (blue-blind)
#AF698C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b151d5;
/* rgb */ color: rgb(177, 81, 213);
/* oklch */ color: oklch(61.1% 0.206 315.6);
Tailwind
colors: {
  custom: {
    50: '#cc87e2',
    500: '#b151d5',
    950: '#000000',
  },
}
SCSS
$custom: #b151d5;
$custom-light: #cc87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d5",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 283.636,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61062,
    "c": 0.20618,
    "h": 315.6
  },
  "luminance": 0.20036
}

Semantic roles & 50–950 ramp

primary
#B151D5
secondary
#B5DBA6
accent
#E4446F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151D5

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

Preview Lab → · Contrast checker → · Palette generator →

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