#B151F7#B151F7

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

Color values

HEX#B151F7
RGBrgb(177, 81, 247)
HSLhsl(275, 91%, 64%)
HSVhsv(275, 67%, 97%)
CMYKcmyk(28.3%, 67.2%, 0%, 3.1%)
CIE-LABlab(53.97, 66.28, -67.21)
CIE-LCHlch(53.97, 94.40, 314.60°)
OKLaboklab(63.24% 0.1454 -0.1905)
OKLCHoklch(63.24% 0.24 307.4)
XYZxyz(37.8589, 21.9479, 90.2196)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151F7 #97F751
analogous
#5E51F7 #B151F7 #F751EA
triadic
#B151F7 #F7B151 #51F7B1
tetradic
#B151F7 #F75E51 #97F751 #51EAF7
square
#B151F7 #F75E51 #97F751 #51EAF7
split-complementary
#B151F7 #EAF751 #51F75E
monochromatic
#7509C5 #9716F4 #B151F7 #CB8CFA #E5C6FC

Accessibility & contrast

On white

3.90
#B151F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#B151F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151F7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151F7#FFFFFF#000000##000000
##B151F71.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#2782F3
Tritanopia (blue-blind)
#A6759E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b151f7;
/* rgb */ color: rgb(177, 81, 247);
/* oklch */ color: oklch(63.2% 0.240 307.4);
Tailwind
colors: {
  custom: {
    50: '#cd88fb',
    500: '#b151f7',
    950: '#000000',
  },
}
SCSS
$custom: #b151f7;
$custom-light: #cd88fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b151f7",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 247
  },
  "hsl": {
    "h": 274.699,
    "s": 91.209,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63236,
    "c": 0.23962,
    "h": 307.4
  },
  "luminance": 0.21947
}

Semantic roles & 50–950 ramp

primary
#B151F7
secondary
#CDEFB5
accent
#E60061
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151F7

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

Preview Lab → · Contrast checker → · Palette generator →

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