#B151CD#B151CD

#B151CD is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.6% C 0.198 H 317.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B151CD
RGBrgb(177, 81, 205)
HSLhsl(286, 55%, 56%)
HSVhsv(286, 60%, 80%)
CMYKcmyk(13.7%, 60.5%, 0%, 19.6%)
CIE-LABlab(51.43, 57.53, -47.57)
CIE-LCHlch(51.43, 74.65, 320.41°)
OKLaboklab(60.59% 0.1473 -0.1329)
OKLCHoklch(60.59% 0.198 317.9)
XYZxyz(32.0918, 19.6410, 59.8464)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151CD #6DCD51
analogous
#7351CD #B151CD #CD51AB
triadic
#B151CD #CDB151 #51CDB1
tetradic
#B151CD #CD7351 #6DCD51 #51ABCD
square
#B151CD #CD7351 #6DCD51 #51ABCD
split-complementary
#B151CD #ABCD51 #51CD73
monochromatic
#6B257F #9332AF #B151CD #C681DB #DCB0E8

Accessibility & contrast

On white

4.26
#B151CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#B151CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151CD
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151CD#FFFFFF#000000##000000
##B151CD1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D1
Deuteranopia (green-blind)
#567ECA
Tritanopia (blue-blind)
#B06688
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b151cd;
/* rgb */ color: rgb(177, 81, 205);
/* oklch */ color: oklch(60.6% 0.198 317.9);
Tailwind
colors: {
  custom: {
    50: '#cb87dd',
    500: '#b151cd',
    950: '#000000',
  },
}
SCSS
$custom: #b151cd;
$custom-light: #cb87dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b151cd",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 286.452,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6059,
    "c": 0.19842,
    "h": 317.9
  },
  "luminance": 0.1964
}

Semantic roles & 50–950 ramp

primary
#B151CD
secondary
#AFD7A3
accent
#DF496B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151CD

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

Preview Lab → · Contrast checker → · Palette generator →

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