#B178EF#B178EF

#B178EF is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.1% C 0.176 H 304.2°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#B178EF
RGBrgb(177, 120, 239)
HSLhsl(269, 79%, 70%)
HSVhsv(269, 50%, 94%)
CMYKcmyk(25.9%, 49.8%, 0%, 6.3%)
CIE-LABlab(60.79, 45.01, -51.84)
CIE-LCHlch(60.79, 68.65, 310.97°)
OKLaboklab(68.07% 0.0991 -0.1456)
OKLCHoklch(68.07% 0.176 304.2)
XYZxyz(40.4246, 29.0122, 85.1149)
Luminance0.2901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178EF #B6EF78
analogous
#787BEF #B178EF #EC78EF
triadic
#B178EF #EFB178 #78EFB1
tetradic
#B178EF #EF787B #B6EF78 #78EFEC
square
#B178EF #EF787B #B6EF78 #78EFEC
split-complementary
#B178EF #EFEC78 #7BEF78
monochromatic
#7219D4 #9141E9 #B178EF #D1AFF5 #EFE4FC

Accessibility & contrast

On white

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

On black

6.80
#B178EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178EF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178EF#FFFFFF#000000##000000
##B178EF1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F3
Deuteranopia (green-blind)
#6493EC
Tritanopia (blue-blind)
#A68DA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b178ef;
/* rgb */ color: rgb(177, 120, 239);
/* oklch */ color: oklch(68.1% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#cba0f5',
    500: '#b178ef',
    950: '#000000',
  },
}
SCSS
$custom: #b178ef;
$custom-light: #cba0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b178ef",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 268.739,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68065,
    "c": 0.17607,
    "h": 304.2
  },
  "luminance": 0.29012
}

Semantic roles & 50–950 ramp

primary
#B178EF
secondary
#E2F2D1
accent
#DB0A77
background
#FCFAFF
surface
#F9F3FE
border
#D2CDD6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178EF

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

Preview Lab → · Contrast checker → · Palette generator →

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