#B281FB#B281FB

#B281FB is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.3% C 0.177 H 300.5°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#B281FB
RGBrgb(178, 129, 251)
HSLhsl(264, 94%, 75%)
HSVhsv(264, 49%, 98%)
CMYKcmyk(29.1%, 48.6%, 0%, 1.6%)
CIE-LABlab(63.45, 43.21, -54.23)
CIE-LCHlch(63.45, 69.34, 308.55°)
OKLaboklab(70.27% 0.0897 -0.1525)
OKLCHoklch(70.27% 0.177 300.5)
XYZxyz(43.6189, 32.1303, 95.1519)
Luminance0.3213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281FB #CAFB81
analogous
#818DFB #B281FB #EF81FB
triadic
#B281FB #FBB281 #81FBB2
tetradic
#B281FB #FB818D #CAFB81 #81FBEF
square
#B281FB #FB818D #CAFB81 #81FBEF
split-complementary
#B281FB #FBEF81 #8DFB81
monochromatic
#6A0AF7 #8E46F9 #B281FB #D6BCFD #EDE1FE

Accessibility & contrast

On white

2.83
#B281FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#B281FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281FB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281FB#FFFFFF#000000##000000
##B281FB1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FF
Deuteranopia (green-blind)
#6699F8
Tritanopia (blue-blind)
#A498B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b281fb;
/* rgb */ color: rgb(178, 129, 251);
/* oklch */ color: oklch(70.3% 0.177 300.5);
Tailwind
colors: {
  custom: {
    50: '#cca6fd',
    500: '#b281fb',
    950: '#000000',
  },
}
SCSS
$custom: #b281fb;
$custom-light: #cca6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b281fb",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 264.098,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70269,
    "c": 0.17694,
    "h": 300.5
  },
  "luminance": 0.32131
}

Semantic roles & 50–950 ramp

primary
#B281FB
secondary
#E9F6D5
accent
#E60089
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B281FB

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

Preview Lab → · Contrast checker → · Palette generator →

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