#B178FA#B178FA

#B178FA is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.189 H 301.9°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#B178FA
RGBrgb(177, 120, 250)
HSLhsl(266, 93%, 73%)
HSVhsv(266, 52%, 98%)
CMYKcmyk(29.2%, 52%, 0%, 2%)
CIE-LABlab(61.38, 47.61, -56.98)
CIE-LCHlch(61.38, 74.25, 309.88°)
OKLaboklab(68.69% 0.0999 -0.1606)
OKLCHoklch(68.69% 0.189 301.9)
XYZxyz(42.0993, 29.6821, 93.9352)
Luminance0.2968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178FA #C1FA78
analogous
#7880FA #B178FA #F278FA
triadic
#B178FA #FAB178 #78FAB1
tetradic
#B178FA #FA7880 #C1FA78 #78FAF2
square
#B178FA #FA7880 #C1FA78 #78FAF2
split-complementary
#B178FA #FAF278 #80FA78
monochromatic
#6E09EF #8F3DF8 #B178FA #D3B3FC #EEE1FE

Accessibility & contrast

On white

3.03
#B178FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#B178FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178FA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178FA#FFFFFF#000000##000000
##B178FA1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A93FE
Deuteranopia (green-blind)
#5B94F7
Tritanopia (blue-blind)
#A391AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b178fa;
/* rgb */ color: rgb(177, 120, 250);
/* oklch */ color: oklch(68.7% 0.189 301.9);
Tailwind
colors: {
  custom: {
    50: '#cca0fc',
    500: '#b178fa',
    950: '#000000',
  },
}
SCSS
$custom: #b178fa;
$custom-light: #cca0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b178fa",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 266.308,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.6869,
    "c": 0.18914,
    "h": 301.9
  },
  "luminance": 0.29682
}

Semantic roles & 50–950 ramp

primary
#B178FA
secondary
#E8F6D5
accent
#E60081
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B178FA

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

Preview Lab → · Contrast checker → · Palette generator →

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