#B178F2#B178F2

#B178F2 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.2% C 0.180 H 303.6°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#B178F2
RGBrgb(177, 120, 242)
HSLhsl(268, 82%, 71%)
HSVhsv(268, 50%, 95%)
CMYKcmyk(26.9%, 50.4%, 0%, 5.1%)
CIE-LABlab(60.95, 45.72, -53.25)
CIE-LCHlch(60.95, 70.18, 310.65°)
OKLaboklab(68.23% 0.0993 -0.1497)
OKLCHoklch(68.23% 0.18 303.6)
XYZxyz(40.8714, 29.1909, 87.4684)
Luminance0.2919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178F2 #B9F278
analogous
#787CF2 #B178F2 #EE78F2
triadic
#B178F2 #F2B178 #78F2B1
tetradic
#B178F2 #F2787C #B9F278 #78F2EE
square
#B178F2 #F2787C #B9F278 #78F2EE
split-complementary
#B178F2 #F2EE78 #7CF278
monochromatic
#7115DB #9140ED #B178F2 #D1B0F7 #EFE3FC

Accessibility & contrast

On white

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

On black

6.84
#B178F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178F2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178F2#FFFFFF#000000##000000
##B178F21.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5192F6
Deuteranopia (green-blind)
#6193EF
Tritanopia (blue-blind)
#A68EAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b178f2;
/* rgb */ color: rgb(177, 120, 242);
/* oklch */ color: oklch(68.2% 0.180 303.6);
Tailwind
colors: {
  custom: {
    50: '#cba0f7',
    500: '#b178f2',
    950: '#000000',
  },
}
SCSS
$custom: #b178f2;
$custom-light: #cba0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b178f2",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 268.033,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68233,
    "c": 0.17964,
    "h": 303.6
  },
  "luminance": 0.29191
}

Semantic roles & 50–950 ramp

primary
#B178F2
secondary
#E4F3D3
accent
#DF077A
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B178F2

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

Preview Lab → · Contrast checker → · Palette generator →

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