#B478FE#B478FE

#B478FE is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.2% C 0.194 H 302.3°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#B478FE
RGBrgb(180, 120, 254)
HSLhsl(267, 99%, 73%)
HSVhsv(267, 53%, 100%)
CMYKcmyk(29.1%, 52.8%, 0%, 0.4%)
CIE-LABlab(61.91, 49.30, -58.33)
CIE-LCHlch(61.91, 76.37, 310.20°)
OKLaboklab(69.22% 0.1038 -0.1644)
OKLCHoklch(69.22% 0.194 302.3)
XYZxyz(43.4242, 30.2919, 97.3059)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478FE #C2FE78
analogous
#787FFE #B478FE #F778FE
triadic
#B478FE #FEB478 #78FEB4
tetradic
#B478FE #FE787F #C2FE78 #78FEF7
square
#B478FE #FE787F #C2FE78 #78FEF7
split-complementary
#B478FE #FEF778 #7FFE78
monochromatic
#7102FA #923BFE #B478FE #D6B5FE #EEE1FF

Accessibility & contrast

On white

2.98
#B478FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#B478FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B478FE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478FE#FFFFFF#000000##000000
##B478FE1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4894FF
Deuteranopia (green-blind)
#5A95FB
Tritanopia (blue-blind)
#A692B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b478fe;
/* rgb */ color: rgb(180, 120, 254);
/* oklch */ color: oklch(69.2% 0.194 302.3);
Tailwind
colors: {
  custom: {
    50: '#cea1ff',
    500: '#b478fe',
    950: '#000000',
  },
}
SCSS
$custom: #b478fe;
$custom-light: #cea1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b478fe",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 266.866,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6922,
    "c": 0.19447,
    "h": 302.3
  },
  "luminance": 0.30292
}

Semantic roles & 50–950 ramp

primary
#B478FE
secondary
#E7F7D4
accent
#E6007F
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B478FE

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

Preview Lab → · Contrast checker → · Palette generator →

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