#B178EE#B178EE

#B178EE is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.175 H 304.5°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#B178EE
RGBrgb(177, 120, 238)
HSLhsl(269, 78%, 70%)
HSVhsv(269, 50%, 93%)
CMYKcmyk(25.6%, 49.6%, 0%, 6.7%)
CIE-LABlab(60.74, 44.78, -51.37)
CIE-LCHlch(60.74, 68.14, 311.08°)
OKLaboklab(68.01% 0.099 -0.1442)
OKLCHoklch(68.01% 0.175 304.5)
XYZxyz(40.2772, 28.9533, 84.3390)
Luminance0.2895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178EE #B5EE78
analogous
#787AEE #B178EE #EC78EE
triadic
#B178EE #EEB178 #78EEB1
tetradic
#B178EE #EE787A #B5EE78 #78EEEC
square
#B178EE #EE787A #B5EE78 #78EEEC
split-complementary
#B178EE #EEEC78 #7AEE78
monochromatic
#731AD1 #9242E7 #B178EE #D0AEF5 #EFE4FC

Accessibility & contrast

On white

3.09
#B178EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#B178EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178EE
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178EE#FFFFFF#000000##000000
##B178EE1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F2
Deuteranopia (green-blind)
#6493EB
Tritanopia (blue-blind)
#A78DA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b178ee;
/* rgb */ color: rgb(177, 120, 238);
/* oklch */ color: oklch(68.0% 0.175 304.5);
Tailwind
colors: {
  custom: {
    50: '#cba0f4',
    500: '#b178ee',
    950: '#000000',
  },
}
SCSS
$custom: #b178ee;
$custom-light: #cba0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b178ee",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 268.983,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68009,
    "c": 0.17488,
    "h": 304.5
  },
  "luminance": 0.28953
}

Semantic roles & 50–950 ramp

primary
#B178EE
secondary
#E1F1D1
accent
#DA0C76
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178EE

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

Preview Lab → · Contrast checker → · Palette generator →

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