#B28AF2#B28AF2

#B28AF2 is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.3% C 0.152 H 300.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#B28AF2
RGBrgb(178, 138, 242)
HSLhsl(263, 80%, 75%)
HSVhsv(263, 43%, 95%)
CMYKcmyk(26.4%, 43%, 0%, 5.1%)
CIE-LABlab(65.00, 36.08, -46.82)
CIE-LCHlch(65.00, 59.11, 307.62°)
OKLaboklab(71.29% 0.0766 -0.131)
OKLCHoklch(71.29% 0.152 300.3)
XYZxyz(43.4719, 34.0526, 88.2697)
Luminance0.3405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AF2 #CAF28A
analogous
#8A96F2 #B28AF2 #E68AF2
triadic
#B28AF2 #F2B28A #8AF2B2
tetradic
#B28AF2 #F28A96 #CAF28A #8AF2E6
square
#B28AF2 #F28A96 #CAF28A #8AF2E6
split-complementary
#B28AF2 #F2E68A #96F28A
monochromatic
#6A1CE6 #8E53EC #B28AF2 #D6C1F8 #EDE3FC

Accessibility & contrast

On white

2.69
#B28AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#B28AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AF2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AF2#FFFFFF#000000##000000
##B28AF21.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9DF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#A69CB2
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28af2;
/* rgb */ color: rgb(178, 138, 242);
/* oklch */ color: oklch(71.3% 0.152 300.3);
Tailwind
colors: {
  custom: {
    50: '#cbacf7',
    500: '#b28af2',
    950: '#000000',
  },
}
SCSS
$custom: #b28af2;
$custom-light: #cbacf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b28af2",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 263.077,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71288,
    "c": 0.15173,
    "h": 300.3
  },
  "luminance": 0.34053
}

Semantic roles & 50–950 ramp

primary
#B28AF2
secondary
#E9F4D7
accent
#DC098B
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #B28AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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