#B151D2#B151D2

#B151D2 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 60.9% C 0.203 H 316.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B151D2
RGBrgb(177, 81, 210)
HSLhsl(285, 59%, 57%)
HSVhsv(285, 61%, 82%)
CMYKcmyk(15.7%, 61.4%, 0%, 17.6%)
CIE-LABlab(51.71, 58.52, -49.99)
CIE-LCHlch(51.71, 76.97, 319.50°)
OKLaboklab(60.88% 0.1474 -0.14)
OKLCHoklch(60.88% 0.203 316.5)
XYZxyz(32.7050, 19.8863, 63.0759)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D2 #72D251
analogous
#7151D2 #B151D2 #D251B3
triadic
#B151D2 #D2B151 #51D2B1
tetradic
#B151D2 #D27151 #72D251 #51B3D2
square
#B151D2 #D27151 #72D251 #51B3D2
split-complementary
#B151D2 #B3D251 #51D271
monochromatic
#6D2386 #942FB7 #B151D2 #C782DF #DDB2EB

Accessibility & contrast

On white

4.22
#B151D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#B151D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D2#FFFFFF#000000##000000
##B151D21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2875D6
Deuteranopia (green-blind)
#527ECF
Tritanopia (blue-blind)
#AF688A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b151d2;
/* rgb */ color: rgb(177, 81, 210);
/* oklch */ color: oklch(60.9% 0.203 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb87e0',
    500: '#b151d2',
    950: '#000000',
  },
}
SCSS
$custom: #b151d2;
$custom-light: #cb87e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 284.651,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60883,
    "c": 0.20326,
    "h": 316.5
  },
  "luminance": 0.19885
}

Semantic roles & 50–950 ramp

primary
#B151D2
secondary
#B3DAA5
accent
#E2466E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151D2

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

Preview Lab → · Contrast checker → · Palette generator →

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