#B478EF#B478EF

#B478EF is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.4% C 0.177 H 305.5°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#B478EF
RGBrgb(180, 120, 239)
HSLhsl(270, 79%, 70%)
HSVhsv(270, 50%, 94%)
CMYKcmyk(24.7%, 49.8%, 0%, 6.3%)
CIE-LABlab(61.11, 45.79, -51.32)
CIE-LCHlch(61.11, 68.78, 311.74°)
OKLaboklab(68.37% 0.1027 -0.144)
OKLCHoklch(68.37% 0.177 305.5)
XYZxyz(41.1156, 29.3685, 85.1473)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B478EF #B3EF78
analogous
#7878EF #B478EF #EF78EF
triadic
#B478EF #EFB478 #78EFB4
tetradic
#B478EF #EF7878 #B3EF78 #78EFEF
square
#B478EF #EF7878 #B3EF78 #78EFEF
split-complementary
#B478EF #EFEF78 #78EF78
monochromatic
#7719D4 #9641E9 #B478EF #D2AFF5 #F0E4FC

Accessibility & contrast

On white

3.06
#B478EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#B478EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B478EF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B478EF#FFFFFF#000000##000000
##B478EF1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F3
Deuteranopia (green-blind)
#6694EC
Tritanopia (blue-blind)
#AA8DA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b478ef;
/* rgb */ color: rgb(180, 120, 239);
/* oklch */ color: oklch(68.4% 0.177 305.5);
Tailwind
colors: {
  custom: {
    50: '#cda0f5',
    500: '#b478ef',
    950: '#000000',
  },
}
SCSS
$custom: #b478ef;
$custom-light: #cda0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b478ef",
  "rgb": {
    "r": 180,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 270.252,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68369,
    "c": 0.17684,
    "h": 305.5
  },
  "luminance": 0.29368
}

Semantic roles & 50–950 ramp

primary
#B478EF
secondary
#E1F2D1
accent
#DB0A72
background
#FCFAFF
surface
#F9F3FE
border
#D2CDD6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B478EF

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

Preview Lab → · Contrast checker → · Palette generator →

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