#B151DC#B151DC

#B151DC is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.5% C 0.213 H 313.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#B151DC
RGBrgb(177, 81, 220)
HSLhsl(281, 67%, 59%)
HSVhsv(281, 63%, 86%)
CMYKcmyk(19.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(52.29, 60.56, -54.75)
CIE-LCHlch(52.29, 81.64, 317.89°)
OKLaboklab(61.49% 0.1473 -0.1539)
OKLCHoklch(61.49% 0.213 313.7)
XYZxyz(33.9900, 20.4003, 69.8434)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151DC #7CDC51
analogous
#6C51DC #B151DC #DC51C2
triadic
#B151DC #DCB151 #51DCB1
tetradic
#B151DC #DC6C51 #7CDC51 #51C2DC
square
#B151DC #DC6C51 #7CDC51 #51C2DC
split-complementary
#B151DC #C2DC51 #51DC6C
monochromatic
#701E95 #9628C8 #B151DC #C884E6 #DFB7F0

Accessibility & contrast

On white

4.13
#B151DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#B151DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151DC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151DC#FFFFFF#000000##000000
##B151DC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1477E0
Deuteranopia (green-blind)
#4A7FD9
Tritanopia (blue-blind)
#AD6B8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b151dc;
/* rgb */ color: rgb(177, 81, 220);
/* oklch */ color: oklch(61.5% 0.213 313.7);
Tailwind
colors: {
  custom: {
    50: '#cc88e7',
    500: '#b151dc',
    950: '#000000',
  },
}
SCSS
$custom: #b151dc;
$custom-light: #cc88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b151dc",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 281.439,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61487,
    "c": 0.21302,
    "h": 313.7
  },
  "luminance": 0.20399
}

Semantic roles & 50–950 ramp

primary
#B151DC
secondary
#BAE0A9
accent
#E93E73
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B151DC

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

Preview Lab → · Contrast checker → · Palette generator →

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