#B278DC#B278DC

#B278DC is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.2% C 0.154 H 309.6°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#B278DC
RGBrgb(178, 120, 220)
HSLhsl(275, 59%, 67%)
HSVhsv(275, 45%, 86%)
CMYKcmyk(19.1%, 45.5%, 0%, 13.7%)
CIE-LABlab(59.95, 40.96, -42.58)
CIE-LCHlch(59.95, 59.08, 313.89°)
OKLaboklab(67.15% 0.098 -0.1186)
OKLCHoklch(67.15% 0.154 309.6)
XYZxyz(37.9924, 28.0658, 71.1121)
Luminance0.2807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B278DC #A2DC78
analogous
#8078DC #B278DC #DC78D4
triadic
#B278DC #DCB278 #78DCB2
tetradic
#B278DC #DC8078 #A2DC78 #78D4DC
square
#B278DC #DC8078 #A2DC78 #78D4DC
split-complementary
#B278DC #D4DC78 #78DC80
monochromatic
#772DAD #9647CF #B278DC #CEA9E9 #E9D9F5

Accessibility & contrast

On white

3.18
#B278DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#B278DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B278DC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B278DC#FFFFFF#000000##000000
##B278DC1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#618EE0
Deuteranopia (green-blind)
#7091D9
Tritanopia (blue-blind)
#AD88A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b278dc;
/* rgb */ color: rgb(178, 120, 220);
/* oklch */ color: oklch(67.2% 0.154 309.6);
Tailwind
colors: {
  custom: {
    50: '#cba0e7',
    500: '#b278dc',
    950: '#000000',
  },
}
SCSS
$custom: #b278dc;
$custom-light: #cba0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b278dc",
  "rgb": {
    "r": 178,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 274.8,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6715,
    "c": 0.15384,
    "h": 309.6
  },
  "luminance": 0.28065
}

Semantic roles & 50–950 ramp

primary
#B278DC
secondary
#D5E8C8
accent
#C61F65
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #B278DC

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

Preview Lab → · Contrast checker → · Palette generator →

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