#B478EB#B478EB

#B478EB is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.1% C 0.172 H 306.5°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#B478EB
RGBrgb(180, 120, 235)
HSLhsl(271, 74%, 70%)
HSVhsv(271, 49%, 92%)
CMYKcmyk(23.4%, 48.9%, 0%, 7.8%)
CIE-LABlab(60.90, 44.88, -49.43)
CIE-LCHlch(60.90, 66.76, 312.24°)
OKLaboklab(68.15% 0.1023 -0.1384)
OKLCHoklch(68.15% 0.172 306.5)
XYZxyz(40.5312, 29.1348, 82.0695)
Luminance0.2913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478EB #AFEB78
analogous
#7A78EB #B478EB #EB78E9
triadic
#B478EB #EBB478 #78EBB4
tetradic
#B478EB #EB7A78 #AFEB78 #78E9EB
square
#B478EB #EB7A78 #AFEB78 #78E9EB
split-complementary
#B478EB #E9EB78 #78EB7A
monochromatic
#781ECB #9643E3 #B478EB #D2ADF3 #EFE3FB

Accessibility & contrast

On white

3.08
#B478EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#B478EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B478EB
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478EB#FFFFFF#000000##000000
##B478EB1.003.086.836.83
#FFFFFF3.081.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EF
Deuteranopia (green-blind)
#6993E8
Tritanopia (blue-blind)
#AC8CA7
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b478eb;
/* rgb */ color: rgb(180, 120, 235);
/* oklch */ color: oklch(68.1% 0.172 306.5);
Tailwind
colors: {
  custom: {
    50: '#cda0f2',
    500: '#b478eb',
    950: '#000000',
  },
}
SCSS
$custom: #b478eb;
$custom-light: #cda0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b478eb",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 271.304,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68149,
    "c": 0.17214,
    "h": 306.5
  },
  "luminance": 0.29134
}

Semantic roles & 50–950 ramp

primary
#B478EB
secondary
#DFF0CF
accent
#D60F6E
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478EB

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

Preview Lab → · Contrast checker → · Palette generator →

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