#B151D4#B151D4

#B151D4 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.0% C 0.205 H 315.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B151D4
RGBrgb(177, 81, 212)
HSLhsl(284, 60%, 57%)
HSVhsv(284, 62%, 83%)
CMYKcmyk(16.5%, 61.8%, 0%, 16.9%)
CIE-LABlab(51.82, 58.93, -50.94)
CIE-LCHlch(51.82, 77.90, 319.16°)
OKLaboklab(61% 0.1474 -0.1428)
OKLCHoklch(61% 0.205 315.9)
XYZxyz(32.9557, 19.9866, 64.3964)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151D4 #74D451
analogous
#6F51D4 #B151D4 #D451B6
triadic
#B151D4 #D4B151 #51D4B1
tetradic
#B151D4 #D46F51 #74D451 #51B6D4
square
#B151D4 #D46F51 #74D451 #51B6D4
split-complementary
#B151D4 #B6D451 #51D46F
monochromatic
#6D2289 #942EBA #B151D4 #C782E0 #DDB3EC

Accessibility & contrast

On white

4.20
#B151D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#B151D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151D4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151D4#FFFFFF#000000##000000
##B151D41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2576D8
Deuteranopia (green-blind)
#517ED1
Tritanopia (blue-blind)
#AF688B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b151d4;
/* rgb */ color: rgb(177, 81, 212);
/* oklch */ color: oklch(61.0% 0.205 315.9);
Tailwind
colors: {
  custom: {
    50: '#cc87e2',
    500: '#b151d4',
    950: '#000000',
  },
}
SCSS
$custom: #b151d4;
$custom-light: #cc87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b151d4",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 283.969,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61002,
    "c": 0.20521,
    "h": 315.9
  },
  "luminance": 0.19985
}

Semantic roles & 50–950 ramp

primary
#B151D4
secondary
#B4DBA6
accent
#E4446F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151D4

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

Preview Lab → · Contrast checker → · Palette generator →

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