#B178E8#B178E8

#B178E8 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.7% C 0.168 H 305.9°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#B178E8
RGBrgb(177, 120, 232)
HSLhsl(271, 71%, 69%)
HSVhsv(271, 48%, 91%)
CMYKcmyk(23.7%, 48.3%, 0%, 9%)
CIE-LABlab(60.43, 43.39, -48.52)
CIE-LCHlch(60.43, 65.09, 311.81°)
OKLaboklab(67.68% 0.0984 -0.1359)
OKLCHoklch(67.68% 0.168 305.9)
XYZxyz(39.4104, 28.6065, 79.7737)
Luminance0.2861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178E8 #AFE878
analogous
#7978E8 #B178E8 #E878E7
triadic
#B178E8 #E8B178 #78E8B1
tetradic
#B178E8 #E87978 #AFE878 #78E7E8
square
#B178E8 #E87978 #AFE878 #78E7E8
split-complementary
#B178E8 #E7E878 #78E879
monochromatic
#7421C4 #9344DF #B178E8 #CFACF1 #EDE1FA

Accessibility & contrast

On white

3.12
#B178E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#B178E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178E8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178E8#FFFFFF#000000##000000
##B178E81.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5990EC
Deuteranopia (green-blind)
#6892E5
Tritanopia (blue-blind)
#A88BA5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b178e8;
/* rgb */ color: rgb(177, 120, 232);
/* oklch */ color: oklch(67.7% 0.168 305.9);
Tailwind
colors: {
  custom: {
    50: '#cba0f0',
    500: '#b178e8',
    950: '#000000',
  },
}
SCSS
$custom: #b178e8;
$custom-light: #cba0f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b178e8",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 270.536,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6768,
    "c": 0.16774,
    "h": 305.9
  },
  "luminance": 0.28606
}

Semantic roles & 50–950 ramp

primary
#B178E8
secondary
#DEEECD
accent
#D31371
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #B178E8

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

Preview Lab → · Contrast checker → · Palette generator →

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