#B281F7#B281F7

#B281F7 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.0% C 0.172 H 301.3°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#B281F7
RGBrgb(178, 129, 247)
HSLhsl(265, 88%, 74%)
HSVhsv(265, 48%, 97%)
CMYKcmyk(27.9%, 47.8%, 0%, 3.1%)
CIE-LABlab(63.24, 42.25, -52.36)
CIE-LCHlch(63.24, 67.28, 308.90°)
OKLaboklab(70.05% 0.0893 -0.1471)
OKLCHoklch(70.05% 0.172 301.3)
XYZxyz(42.9950, 31.8808, 91.8661)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F7 #C6F781
analogous
#818BF7 #B281F7 #ED81F7
triadic
#B281F7 #F7B281 #81F7B2
tetradic
#B281F7 #F7818B #C6F781 #81F7ED
square
#B281F7 #F7818B #C6F781 #81F7ED
split-complementary
#B281F7 #F7ED81 #8BF781
monochromatic
#6C0FEE #8F47F3 #B281F7 #D5BBFB #EDE2FD

Accessibility & contrast

On white

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

On black

7.38
#B281F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F7
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F7#FFFFFF#000000##000000
##B281F71.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D98FB
Deuteranopia (green-blind)
#6999F4
Tritanopia (blue-blind)
#A596B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b281f7;
/* rgb */ color: rgb(178, 129, 247);
/* oklch */ color: oklch(70.0% 0.172 301.3);
Tailwind
colors: {
  custom: {
    50: '#cca6fa',
    500: '#b281f7',
    950: '#000000',
  },
}
SCSS
$custom: #b281f7;
$custom-light: #cca6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f7",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 264.915,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70048,
    "c": 0.17204,
    "h": 301.3
  },
  "luminance": 0.31881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B281F7

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

Preview Lab → · Contrast checker → · Palette generator →

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