#B178F3#B178F3

#B178F3 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.3% C 0.181 H 303.4°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#B178F3
RGBrgb(177, 120, 243)
HSLhsl(268, 84%, 71%)
HSVhsv(268, 51%, 95%)
CMYKcmyk(27.2%, 50.6%, 0%, 4.7%)
CIE-LABlab(61.00, 45.95, -53.72)
CIE-LCHlch(61.00, 70.69, 310.54°)
OKLaboklab(68.29% 0.0994 -0.151)
OKLCHoklch(68.29% 0.181 303.4)
XYZxyz(41.0220, 29.2512, 88.2615)
Luminance0.2925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178F3 #BAF378
analogous
#787CF3 #B178F3 #EE78F3
triadic
#B178F3 #F3B178 #78F3B1
tetradic
#B178F3 #F3787C #BAF378 #78F3EE
square
#B178F3 #F3787C #BAF378 #78F3EE
split-complementary
#B178F3 #F3EE78 #7CF378
monochromatic
#7114DD #9140EE #B178F3 #D1B0F8 #EFE3FD

Accessibility & contrast

On white

3.07
#B178F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#B178F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178F3
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178F3#FFFFFF#000000##000000
##B178F31.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5092F7
Deuteranopia (green-blind)
#6193F0
Tritanopia (blue-blind)
#A58FAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b178f3;
/* rgb */ color: rgb(177, 120, 243);
/* oklch */ color: oklch(68.3% 0.181 303.4);
Tailwind
colors: {
  custom: {
    50: '#cba0f7',
    500: '#b178f3',
    950: '#000000',
  },
}
SCSS
$custom: #b178f3;
$custom-light: #cba0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b178f3",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 243
  },
  "hsl": {
    "h": 267.805,
    "s": 83.673,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68289,
    "c": 0.18082,
    "h": 303.4
  },
  "luminance": 0.29251
}

Semantic roles & 50–950 ramp

primary
#B178F3
secondary
#E5F4D3
accent
#E0057B
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178F3

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

Preview Lab → · Contrast checker → · Palette generator →

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