#B151B4#B151B4

#B151B4 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.2% C 0.175 H 326.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B151B4
RGBrgb(177, 81, 180)
HSLhsl(298, 40%, 51%)
HSVhsv(298, 55%, 71%)
CMYKcmyk(1.7%, 55%, 0%, 29.4%)
CIE-LABlab(50.13, 52.76, -35.18)
CIE-LCHlch(50.13, 63.41, 326.30°)
OKLaboklab(59.22% 0.1456 -0.097)
OKLCHoklch(59.22% 0.175 326.3)
XYZxyz(29.3115, 18.5289, 45.2037)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151B4 #54B451
analogous
#7F51B4 #B151B4 #B45185
triadic
#B151B4 #B4B151 #51B4B1
tetradic
#B151B4 #B47F51 #54B451 #5185B4
square
#B151B4 #B47F51 #54B451 #5185B4
split-complementary
#B151B4 #85B451 #51B47F
monochromatic
#5F2A61 #893C8C #B151B4 #C47CC6 #D7A7D9

Accessibility & contrast

On white

4.46
#B151B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B151B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151B4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151B4#FFFFFF#000000##000000
##B151B41.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB7
Deuteranopia (green-blind)
#647CB1
Tritanopia (blue-blind)
#B55D7B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b151b4;
/* rgb */ color: rgb(177, 81, 180);
/* oklch */ color: oklch(59.2% 0.175 326.3);
Tailwind
colors: {
  custom: {
    50: '#cb87cb',
    500: '#b151b4',
    950: '#000000',
  },
}
SCSS
$custom: #b151b4;
$custom-light: #cb87cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b151b4",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 298.182,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59221,
    "c": 0.17493,
    "h": 326.3
  },
  "luminance": 0.18527
}

Semantic roles & 50–950 ramp

primary
#B151B4
secondary
#9CC69B
accent
#D0585C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B151B4

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

Preview Lab → · Contrast checker → · Palette generator →

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