#B178FC#B178FC

#B178FC is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.8% C 0.192 H 301.5°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#B178FC
RGBrgb(177, 120, 252)
HSLhsl(266, 96%, 73%)
HSVhsv(266, 52%, 99%)
CMYKcmyk(29.8%, 52.4%, 0%, 1.2%)
CIE-LABlab(61.49, 48.09, -57.91)
CIE-LCHlch(61.49, 75.27, 309.71°)
OKLaboklab(68.81% 0.1 -0.1633)
OKLCHoklch(68.81% 0.192 301.5)
XYZxyz(42.4146, 29.8082, 95.5956)
Luminance0.2981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B178FC #C3FC78
analogous
#7881FC #B178FC #F378FC
triadic
#B178FC #FCB178 #78FCB1
tetradic
#B178FC #FC7881 #C3FC78 #78FCF3
square
#B178FC #FC7881 #C3FC78 #78FCF3
split-complementary
#B178FC #FCF378 #81FC78
monochromatic
#6D05F4 #8E3CFB #B178FC #D4B4FD #EEE1FE

Accessibility & contrast

On white

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

On black

6.96
#B178FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B178FC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B178FC#FFFFFF#000000##000000
##B178FC1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4894FF
Deuteranopia (green-blind)
#5A94F9
Tritanopia (blue-blind)
#A291AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b178fc;
/* rgb */ color: rgb(177, 120, 252);
/* oklch */ color: oklch(68.8% 0.192 301.5);
Tailwind
colors: {
  custom: {
    50: '#cca0fe',
    500: '#b178fc',
    950: '#000000',
  },
}
SCSS
$custom: #b178fc;
$custom-light: #cca0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b178fc",
  "rgb": {
    "r": 177,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 265.909,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68806,
    "c": 0.19151,
    "h": 301.5
  },
  "luminance": 0.29808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B178FC

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

Preview Lab → · Contrast checker → · Palette generator →

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