#B151CC#B151CC

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

Color values

HEX#B151CC
RGBrgb(177, 81, 204)
HSLhsl(287, 55%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(13.2%, 60.3%, 0%, 20%)
CIE-LABlab(51.37, 57.33, -47.09)
CIE-LCHlch(51.37, 74.19, 320.60°)
OKLaboklab(60.53% 0.1473 -0.1315)
OKLCHoklch(60.53% 0.197 318.2)
XYZxyz(31.9715, 19.5929, 59.2127)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151CC #6CCC51
analogous
#7351CC #B151CC #CC51AA
triadic
#B151CC #CCB151 #51CCB1
tetradic
#B151CC #CC7351 #6CCC51 #51AACC
square
#B151CC #CC7351 #6CCC51 #51AACC
split-complementary
#B151CC #AACC51 #51CC73
monochromatic
#6A257E #9233AD #B151CC #C680DA #DBB0E8

Accessibility & contrast

On white

4.27
#B151CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#B151CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151CC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151CC#FFFFFF#000000##000000
##B151CC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3074D0
Deuteranopia (green-blind)
#577EC9
Tritanopia (blue-blind)
#B16587
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b151cc;
/* rgb */ color: rgb(177, 81, 204);
/* oklch */ color: oklch(60.5% 0.197 318.2);
Tailwind
colors: {
  custom: {
    50: '#cb87dc',
    500: '#b151cc',
    950: '#000000',
  },
}
SCSS
$custom: #b151cc;
$custom-light: #cb87dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b151cc",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 286.829,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60532,
    "c": 0.19746,
    "h": 318.2
  },
  "luminance": 0.19592
}

Semantic roles & 50–950 ramp

primary
#B151CC
secondary
#AED6A3
accent
#DE4A6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151CC

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

Preview Lab → · Contrast checker → · Palette generator →

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