#B478F2#B478F2

#B478F2 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.5% C 0.180 H 304.8°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#B478F2
RGBrgb(180, 120, 242)
HSLhsl(270, 82%, 71%)
HSVhsv(270, 50%, 95%)
CMYKcmyk(25.6%, 50.4%, 0%, 5.1%)
CIE-LABlab(61.26, 46.49, -52.73)
CIE-LCHlch(61.26, 70.30, 311.40°)
OKLaboklab(68.54% 0.103 -0.1481)
OKLCHoklch(68.54% 0.18 304.8)
XYZxyz(41.5624, 29.5473, 87.5008)
Luminance0.2955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478F2 #B6F278
analogous
#7879F2 #B478F2 #F178F2
triadic
#B478F2 #F2B478 #78F2B4
tetradic
#B478F2 #F27879 #B6F278 #78F2F1
square
#B478F2 #F27879 #B6F278 #78F2F1
split-complementary
#B478F2 #F2F178 #79F278
monochromatic
#7615DB #9540ED #B478F2 #D3B0F7 #EFE3FC

Accessibility & contrast

On white

3.04
#B478F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#B478F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B478F2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478F2#FFFFFF#000000##000000
##B478F21.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5292F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#AA8EAA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b478f2;
/* rgb */ color: rgb(180, 120, 242);
/* oklch */ color: oklch(68.5% 0.180 304.8);
Tailwind
colors: {
  custom: {
    50: '#cda0f7',
    500: '#b478f2',
    950: '#000000',
  },
}
SCSS
$custom: #b478f2;
$custom-light: #cda0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b478f2",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 269.508,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68535,
    "c": 0.18038,
    "h": 304.8
  },
  "luminance": 0.29547
}

Semantic roles & 50–950 ramp

primary
#B478F2
secondary
#E3F3D3
accent
#DF0775
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478F2

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

Preview Lab → · Contrast checker → · Palette generator →

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