#B151D8#B151D8

#B151D8 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.2% C 0.209 H 314.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B151D8
RGBrgb(177, 81, 216)
HSLhsl(283, 63%, 58%)
HSVhsv(283, 63%, 85%)
CMYKcmyk(18.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(52.05, 59.74, -52.85)
CIE-LCHlch(52.05, 79.77, 318.50°)
OKLaboklab(61.24% 0.1474 -0.1483)
OKLCHoklch(61.24% 0.209 314.8)
XYZxyz(33.4666, 20.1909, 67.0868)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D8 #78D851
analogous
#6D51D8 #B151D8 #D851BB
triadic
#B151D8 #D8B151 #51D8B1
tetradic
#B151D8 #D86D51 #78D851 #51BBD8
square
#B151D8 #D86D51 #78D851 #51BBD8
split-complementary
#B151D8 #BBD851 #51D86D
monochromatic
#6F208F #952BC1 #B151D8 #C783E3 #DEB5EE

Accessibility & contrast

On white

4.17
#B151D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#B151D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D8#FFFFFF#000000##000000
##B151D81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E77DC
Deuteranopia (green-blind)
#4E7FD5
Tritanopia (blue-blind)
#AE6A8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b151d8;
/* rgb */ color: rgb(177, 81, 216);
/* oklch */ color: oklch(61.2% 0.209 314.8);
Tailwind
colors: {
  custom: {
    50: '#cc87e5',
    500: '#b151d8',
    950: '#000000',
  },
}
SCSS
$custom: #b151d8;
$custom-light: #cc87e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d8",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 282.667,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61243,
    "c": 0.20911,
    "h": 314.8
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#B151D8
secondary
#B7DDA8
accent
#E64171
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B151D8

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

Preview Lab → · Contrast checker → · Palette generator →

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