#B178F8#B178F8

#B178F8 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.6% C 0.187 H 302.3°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#B178F8
RGBrgb(177, 120, 248)
HSLhsl(267, 90%, 72%)
HSVhsv(267, 52%, 97%)
CMYKcmyk(28.6%, 51.6%, 0%, 2.7%)
CIE-LABlab(61.27, 47.13, -56.05)
CIE-LCHlch(61.27, 73.23, 310.06°)
OKLaboklab(68.57% 0.0998 -0.1579)
OKLCHoklch(68.57% 0.187 302.3)
XYZxyz(41.7874, 29.5573, 92.2924)
Luminance0.2956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178F8 #BFF878
analogous
#787FF8 #B178F8 #F178F8
triadic
#B178F8 #F8B178 #78F8B1
tetradic
#B178F8 #F8787F #BFF878 #78F8F1
square
#B178F8 #F8787F #BFF878 #78F8F1
split-complementary
#B178F8 #F8F178 #7FF878
monochromatic
#6F0CE9 #8F3EF5 #B178F8 #D3B2FB #EEE2FD

Accessibility & contrast

On white

3.04
#B178F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#B178F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178F8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178F8#FFFFFF#000000##000000
##B178F81.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C93FC
Deuteranopia (green-blind)
#5D94F5
Tritanopia (blue-blind)
#A490AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b178f8;
/* rgb */ color: rgb(177, 120, 248);
/* oklch */ color: oklch(68.6% 0.187 302.3);
Tailwind
colors: {
  custom: {
    50: '#cba0fb',
    500: '#b178f8',
    950: '#000000',
  },
}
SCSS
$custom: #b178f8;
$custom-light: #cba0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b178f8",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 266.719,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68574,
    "c": 0.18676,
    "h": 302.3
  },
  "luminance": 0.29557
}

Semantic roles & 50–950 ramp

primary
#B178F8
secondary
#E7F6D5
accent
#E6007F
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178F8

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

Preview Lab → · Contrast checker → · Palette generator →

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