#B178EA#B178EA

#B178EA is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.8% C 0.170 H 305.4°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#B178EA
RGBrgb(177, 120, 234)
HSLhsl(270, 73%, 69%)
HSVhsv(270, 49%, 92%)
CMYKcmyk(24.4%, 48.7%, 0%, 8.2%)
CIE-LABlab(60.53, 43.85, -49.47)
CIE-LCHlch(60.53, 66.11, 311.56°)
OKLaboklab(67.79% 0.0986 -0.1386)
OKLCHoklch(67.79% 0.17 305.4)
XYZxyz(39.6961, 28.7208, 81.2784)
Luminance0.2872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178EA #B1EA78
analogous
#7878EA #B178EA #EA78EA
triadic
#B178EA #EAB178 #78EAB1
tetradic
#B178EA #EA7878 #B1EA78 #78EAEA
square
#B178EA #EA7878 #B1EA78 #78EAEA
split-complementary
#B178EA #EAEA78 #78EA78
monochromatic
#741FC8 #9243E2 #B178EA #D0ADF2 #EEE2FA

Accessibility & contrast

On white

3.11
#B178EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#B178EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178EA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178EA#FFFFFF#000000##000000
##B178EA1.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5790EE
Deuteranopia (green-blind)
#6792E7
Tritanopia (blue-blind)
#A88CA6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b178ea;
/* rgb */ color: rgb(177, 120, 234);
/* oklch */ color: oklch(67.8% 0.170 305.4);
Tailwind
colors: {
  custom: {
    50: '#cba0f1',
    500: '#b178ea',
    950: '#000000',
  },
}
SCSS
$custom: #b178ea;
$custom-light: #cba0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b178ea",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 270,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67789,
    "c": 0.17011,
    "h": 305.4
  },
  "luminance": 0.28721
}

Semantic roles & 50–950 ramp

primary
#B178EA
secondary
#DFEFCE
accent
#D51073
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140F17
muted
#827E85

Preview Lab

Preview with #B178EA

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

Preview Lab → · Contrast checker → · Palette generator →

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