#B151E7#B151E7

#B151E7 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.2% C 0.224 H 311.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B151E7
RGBrgb(177, 81, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(23.4%, 64.9%, 0%, 9.4%)
CIE-LABlab(52.95, 62.86, -59.90)
CIE-LCHlch(52.95, 86.82, 316.38°)
OKLaboklab(62.18% 0.1468 -0.169)
OKLCHoklch(62.18% 0.224 311)
XYZxyz(35.4950, 21.0023, 77.7698)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151E7 #87E751
analogous
#6651E7 #B151E7 #E751D2
triadic
#B151E7 #E7B151 #51E7B1
tetradic
#B151E7 #E76651 #87E751 #51D2E7
square
#B151E7 #E76651 #87E751 #51D2E7
split-complementary
#B151E7 #D2E751 #51E766
monochromatic
#7317A7 #981EDC #B151E7 #C987EE #E1BDF6

Accessibility & contrast

On white

4.04
#B151E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#B151E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151E7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151E7#FFFFFF#000000##000000
##B151E71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEC
Deuteranopia (green-blind)
#3F80E4
Tritanopia (blue-blind)
#AA6F95
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b151e7;
/* rgb */ color: rgb(177, 81, 231);
/* oklch */ color: oklch(62.2% 0.224 311.0);
Tailwind
colors: {
  custom: {
    50: '#cc88ef',
    500: '#b151e7',
    950: '#000000',
  },
}
SCSS
$custom: #b151e7;
$custom-light: #cc88ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b151e7",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 278.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6218,
    "c": 0.22383,
    "h": 311
  },
  "luminance": 0.21001
}

Semantic roles & 50–950 ramp

primary
#B151E7
secondary
#C2E6AE
accent
#D80E56
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151E7

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

Preview Lab → · Contrast checker → · Palette generator →

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