#B281F6#B281F6

#B281F6 is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.0% C 0.171 H 301.5°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#B281F6
RGBrgb(178, 129, 246)
HSLhsl(265, 87%, 74%)
HSVhsv(265, 48%, 96%)
CMYKcmyk(27.6%, 47.6%, 0%, 3.5%)
CIE-LABlab(63.19, 42.01, -51.89)
CIE-LCHlch(63.19, 66.76, 309.00°)
OKLaboklab(69.99% 0.0892 -0.1457)
OKLCHoklch(69.99% 0.171 301.5)
XYZxyz(42.8411, 31.8192, 91.0556)
Luminance0.3182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F6 #C5F681
analogous
#818AF6 #B281F6 #EC81F6
triadic
#B281F6 #F6B281 #81F6B2
tetradic
#B281F6 #F6818A #C5F681 #81F6EC
square
#B281F6 #F6818A #C5F681 #81F6EC
split-complementary
#B281F6 #F6EC81 #8AF681
monochromatic
#6D11EC #8F48F2 #B281F6 #D5BAFA #EEE2FD

Accessibility & contrast

On white

2.85
#B281F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#B281F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F6
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F6#FFFFFF#000000##000000
##B281F61.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D98FA
Deuteranopia (green-blind)
#6998F3
Tritanopia (blue-blind)
#A596B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b281f6;
/* rgb */ color: rgb(178, 129, 246);
/* oklch */ color: oklch(70.0% 0.171 301.5);
Tailwind
colors: {
  custom: {
    50: '#cca6fa',
    500: '#b281f6',
    950: '#000000',
  },
}
SCSS
$custom: #b281f6;
$custom-light: #cca6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f6",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 246
  },
  "hsl": {
    "h": 265.128,
    "s": 86.667,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69994,
    "c": 0.17081,
    "h": 301.5
  },
  "luminance": 0.31819
}

Semantic roles & 50–950 ramp

primary
#B281F6
secondary
#E8F5D6
accent
#E30285
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B281F6

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

Preview Lab → · Contrast checker → · Palette generator →

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