#B151F2#B151F2

#B151F2 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.9% C 0.235 H 308.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B151F2
RGBrgb(177, 81, 242)
HSLhsl(276, 86%, 63%)
HSVhsv(276, 67%, 95%)
CMYKcmyk(26.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(53.65, 65.20, -64.94)
CIE-LCHlch(53.65, 92.03, 315.11°)
OKLaboklab(62.9% 0.1459 -0.1838)
OKLCHoklch(62.9% 0.235 308.4)
XYZxyz(37.0976, 21.6434, 86.2105)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151F2 #92F251
analogous
#6051F2 #B151F2 #F251E3
triadic
#B151F2 #F2B151 #51F2B1
tetradic
#B151F2 #F26051 #92F251 #51E3F2
square
#B151F2 #F26051 #92F251 #51E3F2
split-complementary
#B151F2 #E3F251 #51F260
monochromatic
#750EBB #9718EE #B151F2 #CB8AF6 #E4C3FB

Accessibility & contrast

On white

3.94
#B151F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B151F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151F2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151F2#FFFFFF#000000##000000
##B151F21.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#3081EE
Tritanopia (blue-blind)
#A7749B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b151f2;
/* rgb */ color: rgb(177, 81, 242);
/* oklch */ color: oklch(62.9% 0.235 308.4);
Tailwind
colors: {
  custom: {
    50: '#cd88f7',
    500: '#b151f2',
    950: '#000000',
  },
}
SCSS
$custom: #b151f2;
$custom-light: #cd88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b151f2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 275.776,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.629,
    "c": 0.23468,
    "h": 308.4
  },
  "luminance": 0.21643
}

Semantic roles & 50–950 ramp

primary
#B151F2
secondary
#CAECB3
accent
#E3035D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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