#B178F5#B178F5

#B178F5 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.4% C 0.183 H 302.9°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#B178F5
RGBrgb(177, 120, 245)
HSLhsl(267, 86%, 72%)
HSVhsv(267, 51%, 96%)
CMYKcmyk(27.8%, 51%, 0%, 3.9%)
CIE-LABlab(61.11, 46.42, -54.65)
CIE-LCHlch(61.11, 71.71, 310.34°)
OKLaboklab(68.4% 0.0996 -0.1538)
OKLCHoklch(68.4% 0.183 302.9)
XYZxyz(41.3257, 29.3726, 89.8608)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178F5 #BCF578
analogous
#787EF5 #B178F5 #F078F5
triadic
#B178F5 #F5B178 #78F5B1
tetradic
#B178F5 #F5787E #BCF578 #78F5F0
square
#B178F5 #F5787E #BCF578 #78F5F0
split-complementary
#B178F5 #F5F078 #7EF578
monochromatic
#7011E2 #903FF1 #B178F5 #D2B1F9 #EFE3FD

Accessibility & contrast

On white

3.05
#B178F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#B178F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178F5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178F5#FFFFFF#000000##000000
##B178F51.003.056.876.87
#FFFFFF3.051.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F92F9
Deuteranopia (green-blind)
#5F93F2
Tritanopia (blue-blind)
#A58FAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b178f5;
/* rgb */ color: rgb(177, 120, 245);
/* oklch */ color: oklch(68.4% 0.183 302.9);
Tailwind
colors: {
  custom: {
    50: '#cba0f9',
    500: '#b178f5',
    950: '#000000',
  },
}
SCSS
$custom: #b178f5;
$custom-light: #cba0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b178f5",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 267.36,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68403,
    "c": 0.1832,
    "h": 302.9
  },
  "luminance": 0.29373
}

Semantic roles & 50–950 ramp

primary
#B178F5
secondary
#E6F4D4
accent
#E3037D
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178F5

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

Preview Lab → · Contrast checker → · Palette generator →

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