#B151F6#B151F6

#B151F6 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.2% C 0.239 H 307.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B151F6
RGBrgb(177, 81, 246)
HSLhsl(275, 90%, 64%)
HSVhsv(275, 67%, 96%)
CMYKcmyk(28%, 67.1%, 0%, 3.5%)
CIE-LABlab(53.91, 66.07, -66.76)
CIE-LCHlch(53.91, 93.92, 314.70°)
OKLaboklab(63.17% 0.1455 -0.1891)
OKLCHoklch(63.17% 0.239 307.6)
XYZxyz(37.7050, 21.8863, 89.4091)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151F6 #96F651
analogous
#5F51F6 #B151F6 #F651E9
triadic
#B151F6 #F6B151 #51F6B1
tetradic
#B151F6 #F65F51 #96F651 #51E9F6
square
#B151F6 #F65F51 #96F651 #51E9F6
split-complementary
#B151F6 #E9F651 #51F65F
monochromatic
#750AC3 #9717F3 #B151F6 #CB8BF9 #E5C5FC

Accessibility & contrast

On white

3.91
#B151F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#B151F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151F6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151F6#FFFFFF#000000##000000
##B151F61.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#2982F2
Tritanopia (blue-blind)
#A6759D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b151f6;
/* rgb */ color: rgb(177, 81, 246);
/* oklch */ color: oklch(63.2% 0.239 307.6);
Tailwind
colors: {
  custom: {
    50: '#cd88fa',
    500: '#b151f6',
    950: '#000000',
  },
}
SCSS
$custom: #b151f6;
$custom-light: #cd88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b151f6",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 274.909,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63169,
    "c": 0.23864,
    "h": 307.6
  },
  "luminance": 0.21886
}

Semantic roles & 50–950 ramp

primary
#B151F6
secondary
#CDEEB5
accent
#E60060
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151F6

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

Preview Lab → · Contrast checker → · Palette generator →

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