#B478F6#B478F6

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

Color values

HEX#B478F6
RGBrgb(180, 120, 246)
HSLhsl(269, 88%, 72%)
HSVhsv(269, 51%, 96%)
CMYKcmyk(26.8%, 51.2%, 0%, 3.5%)
CIE-LABlab(61.47, 47.42, -54.61)
CIE-LCHlch(61.47, 72.32, 310.97°)
OKLaboklab(68.76% 0.1033 -0.1536)
OKLCHoklch(68.76% 0.185 303.9)
XYZxyz(42.1698, 29.7902, 90.6994)
Luminance0.2979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478F6 #BAF678
analogous
#787BF6 #B478F6 #F378F6
triadic
#B478F6 #F6B478 #78F6B4
tetradic
#B478F6 #F6787B #BAF678 #78F6F3
square
#B478F6 #F6787B #BAF678 #78F6F3
split-complementary
#B478F6 #F6F378 #7BF678
monochromatic
#750FE4 #943FF2 #B478F6 #D4B1FA #EFE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B478F6#FFFFFF#000000##000000
##B478F61.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)
#4F93FA
Deuteranopia (green-blind)
#6194F3
Tritanopia (blue-blind)
#A88FAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b478f6;
/* rgb */ color: rgb(180, 120, 246);
/* oklch */ color: oklch(68.8% 0.185 303.9);
Tailwind
colors: {
  custom: {
    50: '#cda0fa',
    500: '#b478f6',
    950: '#000000',
  },
}
SCSS
$custom: #b478f6;
$custom-light: #cda0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b478f6",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 268.571,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6876,
    "c": 0.18507,
    "h": 303.9
  },
  "luminance": 0.2979
}

Semantic roles & 50–950 ramp

primary
#B478F6
secondary
#E6F5D5
accent
#E40178
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478F6

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

Preview Lab → · Contrast checker → · Palette generator →

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