#B151D9#B151D9

#B151D9 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.3% C 0.210 H 314.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B151D9
RGBrgb(177, 81, 217)
HSLhsl(282, 64%, 58%)
HSVhsv(282, 63%, 85%)
CMYKcmyk(18.4%, 62.7%, 0%, 14.9%)
CIE-LABlab(52.11, 59.95, -53.33)
CIE-LCHlch(52.11, 80.23, 318.34°)
OKLaboklab(61.3% 0.1474 -0.1497)
OKLCHoklch(61.3% 0.21 314.5)
XYZxyz(33.5962, 20.2428, 67.7697)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D9 #79D951
analogous
#6D51D9 #B151D9 #D951BD
triadic
#B151D9 #D9B151 #51D9B1
tetradic
#B151D9 #D96D51 #79D951 #51BDD9
square
#B151D9 #D96D51 #79D951 #51BDD9
split-complementary
#B151D9 #BDD951 #51D96D
monochromatic
#6F1F90 #962AC2 #B151D9 #C883E4 #DEB5EF

Accessibility & contrast

On white

4.16
#B151D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#B151D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D9#FFFFFF#000000##000000
##B151D91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C77DD
Deuteranopia (green-blind)
#4D7FD6
Tritanopia (blue-blind)
#AE6A8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b151d9;
/* rgb */ color: rgb(177, 81, 217);
/* oklch */ color: oklch(61.3% 0.210 314.5);
Tailwind
colors: {
  custom: {
    50: '#cc88e5',
    500: '#b151d9',
    950: '#000000',
  },
}
SCSS
$custom: #b151d9;
$custom-light: #cc88e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d9",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 282.353,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61303,
    "c": 0.21008,
    "h": 314.5
  },
  "luminance": 0.20242
}

Semantic roles & 50–950 ramp

primary
#B151D9
secondary
#B8DEA8
accent
#E74172
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B151D9

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

Preview Lab → · Contrast checker → · Palette generator →

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