#B281F8#B281F8

#B281F8 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.1% C 0.173 H 301.1°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#B281F8
RGBrgb(178, 129, 248)
HSLhsl(265, 89%, 74%)
HSVhsv(265, 48%, 97%)
CMYKcmyk(28.2%, 48%, 0%, 2.7%)
CIE-LABlab(63.30, 42.49, -52.83)
CIE-LCHlch(63.30, 67.79, 308.81°)
OKLaboklab(70.1% 0.0894 -0.1484)
OKLCHoklch(70.1% 0.173 301.1)
XYZxyz(43.1498, 31.9427, 92.6810)
Luminance0.3194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F8 #C7F881
analogous
#818CF8 #B281F8 #EE81F8
triadic
#B281F8 #F8B281 #81F8B2
tetradic
#B281F8 #F8818C #C7F881 #81F8EE
square
#B281F8 #F8818C #C7F881 #81F8EE
split-complementary
#B281F8 #F8EE81 #8CF881
monochromatic
#6B0DF1 #8F47F5 #B281F8 #D5BBFB #EDE2FD

Accessibility & contrast

On white

2.84
#B281F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#B281F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F8
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F8#FFFFFF#000000##000000
##B281F81.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FC
Deuteranopia (green-blind)
#6899F5
Tritanopia (blue-blind)
#A597B1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b281f8;
/* rgb */ color: rgb(178, 129, 248);
/* oklch */ color: oklch(70.1% 0.173 301.1);
Tailwind
colors: {
  custom: {
    50: '#cca6fb',
    500: '#b281f8',
    950: '#000000',
  },
}
SCSS
$custom: #b281f8;
$custom-light: #cca6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f8",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 264.706,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70103,
    "c": 0.17327,
    "h": 301.1
  },
  "luminance": 0.31943
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B281F8

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

Preview Lab → · Contrast checker → · Palette generator →

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