#B781FC#B781FC

#B781FC is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.8% C 0.179 H 302.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#B781FC
RGBrgb(183, 129, 252)
HSLhsl(266, 95%, 75%)
HSVhsv(266, 49%, 99%)
CMYKcmyk(27.4%, 48.8%, 0%, 1.2%)
CIE-LABlab(64.00, 44.73, -53.88)
CIE-LCHlch(64.00, 70.03, 309.70°)
OKLaboklab(70.81% 0.0958 -0.1514)
OKLCHoklch(70.81% 0.179 302.3)
XYZxyz(44.9454, 32.7960, 96.0390)
Luminance0.3280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B781FC #C6FC81
analogous
#8189FC #B781FC #F481FC
triadic
#B781FC #FCB781 #81FCB7
tetradic
#B781FC #FC8189 #C6FC81 #81FCF4
square
#B781FC #FC8189 #C6FC81 #81FCF4
split-complementary
#B781FC #FCF481 #89FC81
monochromatic
#7309F9 #9545FB #B781FC #D9BDFD #EEE1FE

Accessibility & contrast

On white

2.78
#B781FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#B781FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B781FC
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B781FC#FFFFFF#000000##000000
##B781FC1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9AFF
Deuteranopia (green-blind)
#699BF9
Tritanopia (blue-blind)
#AA97B3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b781fc;
/* rgb */ color: rgb(183, 129, 252);
/* oklch */ color: oklch(70.8% 0.179 302.3);
Tailwind
colors: {
  custom: {
    50: '#cfa7fe',
    500: '#b781fc',
    950: '#000000',
  },
}
SCSS
$custom: #b781fc;
$custom-light: #cfa7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b781fc",
  "rgb": {
    "r": 183,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 266.341,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70806,
    "c": 0.17914,
    "h": 302.3
  },
  "luminance": 0.32796
}

Semantic roles & 50–950 ramp

primary
#B781FC
secondary
#E8F7D4
accent
#E60081
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B781FC

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

Preview Lab → · Contrast checker → · Palette generator →

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