#B478FA#B478FA

#B478FA is a light, vivid violet. Relative luminance 0.300; OKLCH L 69.0% C 0.190 H 303.1°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#B478FA
RGBrgb(180, 120, 250)
HSLhsl(268, 93%, 73%)
HSVhsv(268, 52%, 98%)
CMYKcmyk(28%, 52%, 0%, 2%)
CIE-LABlab(61.69, 48.35, -56.47)
CIE-LCHlch(61.69, 74.34, 310.57°)
OKLaboklab(68.99% 0.1036 -0.159)
OKLCHoklch(68.99% 0.19 303.1)
XYZxyz(42.7903, 30.0384, 93.9676)
Luminance0.3004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478FA #BEFA78
analogous
#787DFA #B478FA #F578FA
triadic
#B478FA #FAB478 #78FAB4
tetradic
#B478FA #FA787D #BEFA78 #78FAF5
square
#B478FA #FA787D #BEFA78 #78FAF5
split-complementary
#B478FA #FAF578 #7DFA78
monochromatic
#7309EF #933DF8 #B478FA #D5B3FC #EFE1FE

Accessibility & contrast

On white

3.00
#B478FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#B478FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B478FA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478FA#FFFFFF#000000##000000
##B478FA1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FE
Deuteranopia (green-blind)
#5E95F7
Tritanopia (blue-blind)
#A790AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b478fa;
/* rgb */ color: rgb(180, 120, 250);
/* oklch */ color: oklch(69.0% 0.190 303.1);
Tailwind
colors: {
  custom: {
    50: '#cea1fc',
    500: '#b478fa',
    950: '#000000',
  },
}
SCSS
$custom: #b478fa;
$custom-light: #cea1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b478fa",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 267.692,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68989,
    "c": 0.18977,
    "h": 303.1
  },
  "luminance": 0.30038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B478FA

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

Preview Lab → · Contrast checker → · Palette generator →

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