#B151FB#B151FB

#B151FB is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.5% C 0.244 H 306.5°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B151FB
RGBrgb(177, 81, 251)
HSLhsl(274, 96%, 65%)
HSVhsv(274, 68%, 98%)
CMYKcmyk(29.5%, 67.7%, 0%, 1.6%)
CIE-LABlab(54.24, 67.15, -69.01)
CIE-LCHlch(54.24, 96.29, 314.22°)
OKLaboklab(63.51% 0.145 -0.1957)
OKLCHoklch(63.51% 0.244 306.5)
XYZxyz(38.4827, 22.1974, 93.5053)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151FB #9BFB51
analogous
#5C51FB #B151FB #FB51F0
triadic
#B151FB #FBB151 #51FBB1
tetradic
#B151FB #FB5C51 #9BFB51 #51F0FB
square
#B151FB #FB5C51 #9BFB51 #51F0FB
split-complementary
#B151FB #F0FB51 #51FB5C
monochromatic
#7605CD #9615FA #B151FB #CC8DFC #E7C9FE

Accessibility & contrast

On white

3.86
#B151FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#B151FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151FB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151FB#FFFFFF#000000##000000
##B151FB1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#1D82F7
Tritanopia (blue-blind)
#A477A0
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b151fb;
/* rgb */ color: rgb(177, 81, 251);
/* oklch */ color: oklch(63.5% 0.244 306.5);
Tailwind
colors: {
  custom: {
    50: '#cd89fe',
    500: '#b151fb',
    950: '#000000',
  },
}
SCSS
$custom: #b151fb;
$custom-light: #cd89fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b151fb",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 251
  },
  "hsl": {
    "h": 273.882,
    "s": 95.506,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63509,
    "c": 0.24357,
    "h": 306.5
  },
  "luminance": 0.22197
}

Semantic roles & 50–950 ramp

primary
#B151FB
secondary
#D0F1B7
accent
#E60064
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B151FB

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

Preview Lab → · Contrast checker → · Palette generator →

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