#B478FB#B478FB

#B478FB is a light, vivid violet. Relative luminance 0.301; OKLCH L 69.0% C 0.191 H 302.9°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#B478FB
RGBrgb(180, 120, 251)
HSLhsl(267, 94%, 73%)
HSVhsv(267, 52%, 98%)
CMYKcmyk(28.3%, 52.2%, 0%, 1.6%)
CIE-LABlab(61.74, 48.59, -56.94)
CIE-LCHlch(61.74, 74.85, 310.48°)
OKLaboklab(69.05% 0.1036 -0.1604)
OKLCHoklch(69.05% 0.191 302.9)
XYZxyz(42.9475, 30.1013, 94.7956)
Luminance0.3010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478FB #BFFB78
analogous
#787DFB #B478FB #F678FB
triadic
#B478FB #FBB478 #78FBB4
tetradic
#B478FB #FB787D #BFFB78 #78FBF6
square
#B478FB #FB787D #BFFB78 #78FBF6
split-complementary
#B478FB #FBF678 #7DFB78
monochromatic
#7207F1 #933DF9 #B478FB #D5B3FD #EEE1FE

Accessibility & contrast

On white

2.99
#B478FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#B478FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B478FB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478FB#FFFFFF#000000##000000
##B478FB1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B94FF
Deuteranopia (green-blind)
#5D95F8
Tritanopia (blue-blind)
#A791AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b478fb;
/* rgb */ color: rgb(180, 120, 251);
/* oklch */ color: oklch(69.0% 0.191 302.9);
Tailwind
colors: {
  custom: {
    50: '#cea1fd',
    500: '#b478fb',
    950: '#000000',
  },
}
SCSS
$custom: #b478fb;
$custom-light: #cea1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b478fb",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 267.481,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69046,
    "c": 0.19094,
    "h": 302.9
  },
  "luminance": 0.30101
}

Semantic roles & 50–950 ramp

primary
#B478FB
secondary
#E7F6D5
accent
#E6007C
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B478FB

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

Preview Lab → · Contrast checker → · Palette generator →

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