#B478F8#B478F8

#B478F8 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.9% C 0.187 H 303.5°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#B478F8
RGBrgb(180, 120, 248)
HSLhsl(268, 90%, 72%)
HSVhsv(268, 52%, 97%)
CMYKcmyk(27.4%, 51.6%, 0%, 2.7%)
CIE-LABlab(61.58, 47.88, -55.54)
CIE-LCHlch(61.58, 73.33, 310.77°)
OKLaboklab(68.87% 0.1034 -0.1563)
OKLCHoklch(68.87% 0.187 303.5)
XYZxyz(42.4784, 29.9136, 92.3248)
Luminance0.2991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478F8 #BCF878
analogous
#787CF8 #B478F8 #F478F8
triadic
#B478F8 #F8B478 #78F8B4
tetradic
#B478F8 #F8787C #BCF878 #78F8F4
square
#B478F8 #F8787C #BCF878 #78F8F4
split-complementary
#B478F8 #F8F478 #7CF878
monochromatic
#740CE9 #943EF5 #B478F8 #D4B2FB #EFE2FD

Accessibility & contrast

On white

3.01
#B478F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#B478F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B478F8
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478F8#FFFFFF#000000##000000
##B478F81.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D93FC
Deuteranopia (green-blind)
#5F95F5
Tritanopia (blue-blind)
#A890AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b478f8;
/* rgb */ color: rgb(180, 120, 248);
/* oklch */ color: oklch(68.9% 0.187 303.5);
Tailwind
colors: {
  custom: {
    50: '#cda0fb',
    500: '#b478f8',
    950: '#000000',
  },
}
SCSS
$custom: #b478f8;
$custom-light: #cda0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b478f8",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 268.125,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68874,
    "c": 0.18742,
    "h": 303.5
  },
  "luminance": 0.29914
}

Semantic roles & 50–950 ramp

primary
#B478F8
secondary
#E7F6D5
accent
#E6007A
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478F8

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

Preview Lab → · Contrast checker → · Palette generator →

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