#B478F9#B478F9

#B478F9 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.9% C 0.189 H 303.3°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#B478F9
RGBrgb(180, 120, 249)
HSLhsl(268, 91%, 72%)
HSVhsv(268, 52%, 98%)
CMYKcmyk(27.7%, 51.8%, 0%, 2.4%)
CIE-LABlab(61.63, 48.12, -56.01)
CIE-LCHlch(61.63, 73.84, 310.67°)
OKLaboklab(68.93% 0.1035 -0.1577)
OKLCHoklch(68.93% 0.189 303.3)
XYZxyz(42.6339, 29.9759, 93.1440)
Luminance0.2998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478F9 #BDF978
analogous
#787DF9 #B478F9 #F478F9
triadic
#B478F9 #F9B478 #78F9B4
tetradic
#B478F9 #F9787D #BDF978 #78F9F4
square
#B478F9 #F9787D #BDF978 #78F9F4
split-complementary
#B478F9 #F9F478 #7DF978
monochromatic
#730AEC #933DF6 #B478F9 #D5B3FC #EFE2FE

Accessibility & contrast

On white

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

On black

7.00
#B478F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B478F9
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478F9#FFFFFF#000000##000000
##B478F91.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b478f9;
/* rgb */ color: rgb(180, 120, 249);
/* oklch */ color: oklch(68.9% 0.189 303.3);
Tailwind
colors: {
  custom: {
    50: '#cea1fc',
    500: '#b478f9',
    950: '#000000',
  },
}
SCSS
$custom: #b478f9;
$custom-light: #cea1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b478f9",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 267.907,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68931,
    "c": 0.18859,
    "h": 303.3
  },
  "luminance": 0.29976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B478F9

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

Preview Lab → · Contrast checker → · Palette generator →

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