#B151CB#B151CB

#B151CB is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.5% C 0.197 H 318.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B151CB
RGBrgb(177, 81, 203)
HSLhsl(287, 54%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(12.8%, 60.1%, 0%, 20.4%)
CIE-LABlab(51.32, 57.13, -46.60)
CIE-LCHlch(51.32, 73.73, 320.80°)
OKLaboklab(60.47% 0.1473 -0.1301)
OKLCHoklch(60.47% 0.197 318.5)
XYZxyz(31.8519, 19.5451, 58.5831)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151CB #6BCB51
analogous
#7451CB #B151CB #CB51A8
triadic
#B151CB #CBB151 #51CBB1
tetradic
#B151CB #CB7451 #6BCB51 #51A8CB
square
#B151CB #CB7451 #6BCB51 #51A8CB
split-complementary
#B151CB #A8CB51 #51CB74
monochromatic
#6A257C #9233AC #B151CB #C680D9 #DBAFE7

Accessibility & contrast

On white

4.28
#B151CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#B151CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151CB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151CB#FFFFFF#000000##000000
##B151CB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174CF
Deuteranopia (green-blind)
#577DC8
Tritanopia (blue-blind)
#B16587
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b151cb;
/* rgb */ color: rgb(177, 81, 203);
/* oklch */ color: oklch(60.5% 0.197 318.5);
Tailwind
colors: {
  custom: {
    50: '#cb87db',
    500: '#b151cb',
    950: '#000000',
  },
}
SCSS
$custom: #b151cb;
$custom-light: #cb87db;
$custom-dark: #000000;
JSON
{
  "hex": "#b151cb",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 287.213,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60474,
    "c": 0.1965,
    "h": 318.5
  },
  "luminance": 0.19544
}

Semantic roles & 50–950 ramp

primary
#B151CB
secondary
#ADD5A3
accent
#DD4A6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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