#B151CA#B151CA

#B151CA is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.4% C 0.196 H 318.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B151CA
RGBrgb(177, 81, 202)
HSLhsl(288, 53%, 55%)
HSVhsv(288, 60%, 79%)
CMYKcmyk(12.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(51.26, 56.93, -46.11)
CIE-LCHlch(51.26, 73.27, 320.99°)
OKLaboklab(60.42% 0.1472 -0.1287)
OKLCHoklch(60.42% 0.196 318.9)
XYZxyz(31.7332, 19.4976, 57.9575)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151CA #6ACA51
analogous
#7451CA #B151CA #CA51A7
triadic
#B151CA #CAB151 #51CAB1
tetradic
#B151CA #CA7451 #6ACA51 #51A7CA
square
#B151CA #CA7451 #6ACA51 #51A7CA
split-complementary
#B151CA #A7CA51 #51CA74
monochromatic
#69257B #9234AA #B151CA #C680D8 #DBAFE7

Accessibility & contrast

On white

4.29
#B151CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#B151CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151CA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151CA#FFFFFF#000000##000000
##B151CA1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CE
Deuteranopia (green-blind)
#587DC7
Tritanopia (blue-blind)
#B16586
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b151ca;
/* rgb */ color: rgb(177, 81, 202);
/* oklch */ color: oklch(60.4% 0.196 318.9);
Tailwind
colors: {
  custom: {
    50: '#cb87db',
    500: '#b151ca',
    950: '#000000',
  },
}
SCSS
$custom: #b151ca;
$custom-light: #cb87db;
$custom-dark: #000000;
JSON
{
  "hex": "#b151ca",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 287.603,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60417,
    "c": 0.19554,
    "h": 318.9
  },
  "luminance": 0.19496
}

Semantic roles & 50–950 ramp

primary
#B151CA
secondary
#ADD5A2
accent
#DD4B69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151CA

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

Preview Lab → · Contrast checker → · Palette generator →

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