#B178FE#B178FE

#B178FE is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.9% C 0.194 H 301.1°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#B178FE
RGBrgb(177, 120, 254)
HSLhsl(266, 99%, 73%)
HSVhsv(266, 53%, 100%)
CMYKcmyk(30.3%, 52.8%, 0%, 0.4%)
CIE-LABlab(61.60, 48.56, -58.83)
CIE-LCHlch(61.60, 76.29, 309.54°)
OKLaboklab(68.92% 0.1002 -0.166)
OKLCHoklch(68.92% 0.194 301.1)
XYZxyz(42.7332, 29.9356, 97.2735)
Luminance0.2994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178FE #C5FE78
analogous
#7882FE #B178FE #F478FE
triadic
#B178FE #FEB178 #78FEB1
tetradic
#B178FE #FE7882 #C5FE78 #78FEF4
square
#B178FE #FE7882 #C5FE78 #78FEF4
split-complementary
#B178FE #FEF478 #82FE78
monochromatic
#6B02FA #8E3BFE #B178FE #D4B5FE #EDE1FF

Accessibility & contrast

On white

3.01
#B178FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#B178FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178FE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178FE#FFFFFF#000000##000000
##B178FE1.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4694FF
Deuteranopia (green-blind)
#5894FB
Tritanopia (blue-blind)
#A292B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b178fe;
/* rgb */ color: rgb(177, 120, 254);
/* oklch */ color: oklch(68.9% 0.194 301.1);
Tailwind
colors: {
  custom: {
    50: '#cca0ff',
    500: '#b178fe',
    950: '#000000',
  },
}
SCSS
$custom: #b178fe;
$custom-light: #cca0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b178fe",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 265.522,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68923,
    "c": 0.19387,
    "h": 301.1
  },
  "luminance": 0.29936
}

Semantic roles & 50–950 ramp

primary
#B178FE
secondary
#E8F7D4
accent
#E60084
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B178FE

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

Preview Lab → · Contrast checker → · Palette generator →

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