#B781FA#B781FA

#B781FA is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.7% C 0.177 H 302.7°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#B781FA
RGBrgb(183, 129, 250)
HSLhsl(267, 92%, 74%)
HSVhsv(267, 48%, 98%)
CMYKcmyk(26.8%, 48.4%, 0%, 2%)
CIE-LABlab(63.89, 44.26, -52.95)
CIE-LCHlch(63.89, 69.01, 309.89°)
OKLaboklab(70.7% 0.0956 -0.1486)
OKLCHoklch(70.7% 0.177 302.7)
XYZxyz(44.6302, 32.6699, 94.3786)
Luminance0.3267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B781FA #C4FA81
analogous
#8188FA #B781FA #F481FA
triadic
#B781FA #FAB781 #81FAB7
tetradic
#B781FA #FA8188 #C4FA81 #81FAF4
square
#B781FA #FA8188 #C4FA81 #81FAF4
split-complementary
#B781FA #FAF481 #88FA81
monochromatic
#740BF5 #9546F8 #B781FA #D9BCFC #EEE2FE

Accessibility & contrast

On white

2.79
#B781FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#B781FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B781FA
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B781FA#FFFFFF#000000##000000
##B781FA1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9AFE
Deuteranopia (green-blind)
#6A9BF7
Tritanopia (blue-blind)
#AB97B2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b781fa;
/* rgb */ color: rgb(183, 129, 250);
/* oklch */ color: oklch(70.7% 0.177 302.7);
Tailwind
colors: {
  custom: {
    50: '#cfa7fc',
    500: '#b781fa',
    950: '#000000',
  },
}
SCSS
$custom: #b781fa;
$custom-light: #cfa7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b781fa",
  "rgb": {
    "r": 183,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 266.777,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70696,
    "c": 0.17673,
    "h": 302.7
  },
  "luminance": 0.3267
}

Semantic roles & 50–950 ramp

primary
#B781FA
secondary
#E7F6D5
accent
#E6007F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B781FA

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

Preview Lab → · Contrast checker → · Palette generator →

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