#B178EB#B178EB

#B178EB is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.171 H 305.2°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#B178EB
RGBrgb(177, 120, 235)
HSLhsl(270, 74%, 70%)
HSVhsv(270, 49%, 92%)
CMYKcmyk(24.7%, 48.9%, 0%, 7.8%)
CIE-LABlab(60.59, 44.08, -49.95)
CIE-LCHlch(60.59, 66.62, 311.43°)
OKLaboklab(67.84% 0.0987 -0.14)
OKLCHoklch(67.84% 0.171 305.2)
XYZxyz(39.8402, 28.7784, 82.0371)
Luminance0.2878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178EB #B2EB78
analogous
#7879EB #B178EB #EB78EB
triadic
#B178EB #EBB178 #78EBB1
tetradic
#B178EB #EB7879 #B2EB78 #78EBEB
square
#B178EB #EB7879 #B2EB78 #78EBEB
split-complementary
#B178EB #EBEB78 #79EB78
monochromatic
#741ECB #9243E3 #B178EB #D0ADF3 #EFE3FB

Accessibility & contrast

On white

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

On black

6.76
#B178EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178EB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178EB#FFFFFF#000000##000000
##B178EB1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5790EF
Deuteranopia (green-blind)
#6692E8
Tritanopia (blue-blind)
#A88CA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b178eb;
/* rgb */ color: rgb(177, 120, 235);
/* oklch */ color: oklch(67.8% 0.171 305.2);
Tailwind
colors: {
  custom: {
    50: '#cba0f2',
    500: '#b178eb',
    950: '#000000',
  },
}
SCSS
$custom: #b178eb;
$custom-light: #cba0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b178eb",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 269.739,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67844,
    "c": 0.17131,
    "h": 305.2
  },
  "luminance": 0.28778
}

Semantic roles & 50–950 ramp

primary
#B178EB
secondary
#E0F0CF
accent
#D60F74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140F17
muted
#827E85

Preview Lab

Preview with #B178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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