#B178F9#B178F9

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

Color values

HEX#B178F9
RGBrgb(177, 120, 249)
HSLhsl(267, 91%, 72%)
HSVhsv(267, 52%, 98%)
CMYKcmyk(28.9%, 51.8%, 0%, 2.4%)
CIE-LABlab(61.32, 47.37, -56.52)
CIE-LCHlch(61.32, 73.74, 309.97°)
OKLaboklab(68.63% 0.0999 -0.1592)
OKLCHoklch(68.63% 0.188 302.1)
XYZxyz(41.9429, 29.6195, 93.1116)
Luminance0.2962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178F9 #C0F978
analogous
#787FF9 #B178F9 #F278F9
triadic
#B178F9 #F9B178 #78F9B1
tetradic
#B178F9 #F9787F #C0F978 #78F9F2
square
#B178F9 #F9787F #C0F978 #78F9F2
split-complementary
#B178F9 #F9F278 #7FF978
monochromatic
#6E0AEC #8F3DF6 #B178F9 #D3B3FC #EEE2FE

Accessibility & contrast

On white

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

On black

6.92
#B178F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178F9
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178F9#FFFFFF#000000##000000
##B178F91.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B93FD
Deuteranopia (green-blind)
#5C94F6
Tritanopia (blue-blind)
#A390AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b178f9;
/* rgb */ color: rgb(177, 120, 249);
/* oklch */ color: oklch(68.6% 0.188 302.1);
Tailwind
colors: {
  custom: {
    50: '#cba0fc',
    500: '#b178f9',
    950: '#000000',
  },
}
SCSS
$custom: #b178f9;
$custom-light: #cba0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b178f9",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 266.512,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68632,
    "c": 0.18795,
    "h": 302.1
  },
  "luminance": 0.2962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B178F9

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

Preview Lab → · Contrast checker → · Palette generator →

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