#B178FB#B178FB

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

Color values

HEX#B178FB
RGBrgb(177, 120, 251)
HSLhsl(266, 94%, 73%)
HSVhsv(266, 52%, 98%)
CMYKcmyk(29.5%, 52.2%, 0%, 1.6%)
CIE-LABlab(61.43, 47.85, -57.45)
CIE-LCHlch(61.43, 74.76, 309.79°)
OKLaboklab(68.75% 0.1 -0.1619)
OKLCHoklch(68.75% 0.19 301.7)
XYZxyz(42.2565, 29.7450, 94.7632)
Luminance0.2974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178FB #C2FB78
analogous
#7880FB #B178FB #F378FB
triadic
#B178FB #FBB178 #78FBB1
tetradic
#B178FB #FB7880 #C2FB78 #78FBF3
square
#B178FB #FB7880 #C2FB78 #78FBF3
split-complementary
#B178FB #FBF378 #80FB78
monochromatic
#6D07F1 #8F3DF9 #B178FB #D3B3FD #EEE1FE

Accessibility & contrast

On white

3.02
#B178FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#B178FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178FB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178FB#FFFFFF#000000##000000
##B178FB1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4993FF
Deuteranopia (green-blind)
#5A94F8
Tritanopia (blue-blind)
#A391AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b178fb;
/* rgb */ color: rgb(177, 120, 251);
/* oklch */ color: oklch(68.7% 0.190 301.7);
Tailwind
colors: {
  custom: {
    50: '#cca0fd',
    500: '#b178fb',
    950: '#000000',
  },
}
SCSS
$custom: #b178fb;
$custom-light: #cca0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b178fb",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 266.107,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68748,
    "c": 0.19032,
    "h": 301.7
  },
  "luminance": 0.29745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B178FB

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

Preview Lab → · Contrast checker → · Palette generator →

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