#B28FE7#B28FE7

#B28FE7 is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.6% C 0.130 H 301.5°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#B28FE7
RGBrgb(178, 143, 231)
HSLhsl(264, 65%, 73%)
HSVhsv(264, 38%, 91%)
CMYKcmyk(22.9%, 38.1%, 0%, 9.4%)
CIE-LABlab(65.65, 30.69, -39.74)
CIE-LCHlch(65.65, 50.21, 307.68°)
OKLaboklab(71.61% 0.0678 -0.1105)
OKLCHoklch(71.61% 0.13 301.5)
XYZxyz(42.6032, 34.8794, 80.0737)
Luminance0.3488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28FE7 #C4E78F
analogous
#8F98E7 #B28FE7 #DE8FE7
triadic
#B28FE7 #E7B28F #8FE7B2
tetradic
#B28FE7 #E78F98 #C4E78F #8FE7DE
square
#B28FE7 #E78F98 #C4E78F #8FE7DE
split-complementary
#B28FE7 #E7DE8F #98E78F
monochromatic
#6D2CCF #8F5DDC #B28FE7 #D5C1F2 #EEE6FA

Accessibility & contrast

On white

2.63
#B28FE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#B28FE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28FE7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28FE7#FFFFFF#000000##000000
##B28FE71.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9FEA
Deuteranopia (green-blind)
#819FE5
Tritanopia (blue-blind)
#A99DB0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28fe7;
/* rgb */ color: rgb(178, 143, 231);
/* oklch */ color: oklch(71.6% 0.130 301.5);
Tailwind
colors: {
  custom: {
    50: '#cab0ef',
    500: '#b28fe7',
    950: '#000000',
  },
}
SCSS
$custom: #b28fe7;
$custom-light: #cab0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b28fe7",
  "rgb": {
    "r": 178,
    "g": 143,
    "b": 231
  },
  "hsl": {
    "h": 263.864,
    "s": 64.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71615,
    "c": 0.1296,
    "h": 301.5
  },
  "luminance": 0.34879
}

Semantic roles & 50–950 ramp

primary
#B28FE7
secondary
#E8F1DA
accent
#CD1985
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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