#B178EC#B178EC

#B178EC is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.9% C 0.172 H 304.9°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#B178EC
RGBrgb(177, 120, 236)
HSLhsl(269, 75%, 70%)
HSVhsv(269, 49%, 93%)
CMYKcmyk(25%, 49.2%, 0%, 7.5%)
CIE-LABlab(60.64, 44.32, -50.42)
CIE-LCHlch(60.64, 67.13, 311.31°)
OKLaboklab(67.9% 0.0988 -0.1414)
OKLCHoklch(67.9% 0.172 304.9)
XYZxyz(39.9850, 28.8364, 82.8001)
Luminance0.2884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178EC #B3EC78
analogous
#7879EC #B178EC #EB78EC
triadic
#B178EC #ECB178 #78ECB1
tetradic
#B178EC #EC7879 #B3EC78 #78ECEB
square
#B178EC #EC7879 #B3EC78 #78ECEB
split-complementary
#B178EC #ECEB78 #79EC78
monochromatic
#731DCD #9242E4 #B178EC #D0AEF4 #EFE3FB

Accessibility & contrast

On white

3.10
#B178EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#B178EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178EC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178EC#FFFFFF#000000##000000
##B178EC1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F0
Deuteranopia (green-blind)
#6692E9
Tritanopia (blue-blind)
#A78CA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b178ec;
/* rgb */ color: rgb(177, 120, 236);
/* oklch */ color: oklch(67.9% 0.172 304.9);
Tailwind
colors: {
  custom: {
    50: '#cba0f2',
    500: '#b178ec',
    950: '#000000',
  },
}
SCSS
$custom: #b178ec;
$custom-light: #cba0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b178ec",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 269.483,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67899,
    "c": 0.17249,
    "h": 304.9
  },
  "luminance": 0.28836
}

Semantic roles & 50–950 ramp

primary
#B178EC
secondary
#E0F0D0
accent
#D70E74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140F17
muted
#827E85

Preview Lab

Preview with #B178EC

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

Preview Lab → · Contrast checker → · Palette generator →

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