#B478EA#B478EA

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

Color values

HEX#B478EA
RGBrgb(180, 120, 234)
HSLhsl(272, 73%, 69%)
HSVhsv(272, 49%, 92%)
CMYKcmyk(23.1%, 48.7%, 0%, 8.2%)
CIE-LABlab(60.85, 44.65, -48.95)
CIE-LCHlch(60.85, 66.26, 312.37°)
OKLaboklab(68.1% 0.1022 -0.1371)
OKLCHoklch(68.1% 0.171 306.7)
XYZxyz(40.3871, 29.0771, 81.3108)
Luminance0.2908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478EA #AEEA78
analogous
#7B78EA #B478EA #EA78E7
triadic
#B478EA #EAB478 #78EAB4
tetradic
#B478EA #EA7B78 #AEEA78 #78E7EA
square
#B478EA #EA7B78 #AEEA78 #78E7EA
split-complementary
#B478EA #E7EA78 #78EA7B
monochromatic
#781FC8 #9743E2 #B478EA #D1ADF2 #EFE2FA

Accessibility & contrast

On white

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

On black

6.82
#B478EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B478EA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478EA#FFFFFF#000000##000000
##B478EA1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EE
Deuteranopia (green-blind)
#6993E7
Tritanopia (blue-blind)
#AC8CA6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b478ea;
/* rgb */ color: rgb(180, 120, 234);
/* oklch */ color: oklch(68.1% 0.171 306.7);
Tailwind
colors: {
  custom: {
    50: '#cda0f1',
    500: '#b478ea',
    950: '#000000',
  },
}
SCSS
$custom: #b478ea;
$custom-light: #cda0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b478ea",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 271.579,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68095,
    "c": 0.17097,
    "h": 306.7
  },
  "luminance": 0.29077
}

Semantic roles & 50–950 ramp

primary
#B478EA
secondary
#DEEFCE
accent
#D5106E
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478EA

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

Preview Lab → · Contrast checker → · Palette generator →

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