#B781F7#B781F7

#B781F7 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.5% C 0.173 H 303.4°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#B781F7
RGBrgb(183, 129, 247)
HSLhsl(267, 88%, 74%)
HSVhsv(267, 48%, 97%)
CMYKcmyk(25.9%, 47.8%, 0%, 3.1%)
CIE-LABlab(63.74, 43.56, -51.54)
CIE-LCHlch(63.74, 67.48, 310.20°)
OKLaboklab(70.53% 0.0953 -0.1446)
OKLCHoklch(70.53% 0.173 303.4)
XYZxyz(44.1635, 32.4833, 91.9209)
Luminance0.3248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B781F7 #C1F781
analogous
#8186F7 #B781F7 #F281F7
triadic
#B781F7 #F7B781 #81F7B7
tetradic
#B781F7 #F78186 #C1F781 #81F7F2
square
#B781F7 #F78186 #C1F781 #81F7F2
split-complementary
#B781F7 #F7F281 #86F781
monochromatic
#750FEE #9647F3 #B781F7 #D8BBFB #EFE2FD

Accessibility & contrast

On white

2.80
#B781F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#B781F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B781F7
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B781F7#FFFFFF#000000##000000
##B781F71.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E99FB
Deuteranopia (green-blind)
#6C9AF4
Tritanopia (blue-blind)
#AC96B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b781f7;
/* rgb */ color: rgb(183, 129, 247);
/* oklch */ color: oklch(70.5% 0.173 303.4);
Tailwind
colors: {
  custom: {
    50: '#cfa7fa',
    500: '#b781f7',
    950: '#000000',
  },
}
SCSS
$custom: #b781f7;
$custom-light: #cfa7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b781f7",
  "rgb": {
    "r": 183,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 267.458,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70533,
    "c": 0.17312,
    "h": 303.4
  },
  "luminance": 0.32483
}

Semantic roles & 50–950 ramp

primary
#B781F7
secondary
#E7F5D6
accent
#E5017C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B781F7

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

Preview Lab → · Contrast checker → · Palette generator →

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