#B278F9#B278F9

#B278F9 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.188 H 302.5°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#B278F9
RGBrgb(178, 120, 249)
HSLhsl(267, 91%, 72%)
HSVhsv(267, 52%, 98%)
CMYKcmyk(28.5%, 51.8%, 0%, 2.4%)
CIE-LABlab(61.43, 47.62, -56.35)
CIE-LCHlch(61.43, 73.77, 310.20°)
OKLaboklab(68.73% 0.1011 -0.1587)
OKLCHoklch(68.73% 0.188 302.5)
XYZxyz(42.1716, 29.7375, 93.1223)
Luminance0.2974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B278F9 #BFF978
analogous
#787EF9 #B278F9 #F378F9
triadic
#B278F9 #F9B278 #78F9B2
tetradic
#B278F9 #F9787E #BFF978 #78F9F3
square
#B278F9 #F9787E #BFF978 #78F9F3
split-complementary
#B278F9 #F9F378 #7EF978
monochromatic
#700AEC #913DF6 #B278F9 #D3B3FC #EEE2FE

Accessibility & contrast

On white

3.02
#B278F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#B278F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B278F9
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B278F9#FFFFFF#000000##000000
##B278F91.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C93FD
Deuteranopia (green-blind)
#5D94F6
Tritanopia (blue-blind)
#A590AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b278f9;
/* rgb */ color: rgb(178, 120, 249);
/* oklch */ color: oklch(68.7% 0.188 302.5);
Tailwind
colors: {
  custom: {
    50: '#cca0fc',
    500: '#b278f9',
    950: '#000000',
  },
}
SCSS
$custom: #b278f9;
$custom-light: #cca0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b278f9",
  "rgb": {
    "r": 178,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 266.977,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68731,
    "c": 0.18816,
    "h": 302.5
  },
  "luminance": 0.29737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B278F9

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

Preview Lab → · Contrast checker → · Palette generator →

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