#B781F6#B781F6

#B781F6 is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.5% C 0.172 H 303.6°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#B781F6
RGBrgb(183, 129, 246)
HSLhsl(268, 87%, 74%)
HSVhsv(268, 48%, 96%)
CMYKcmyk(25.6%, 47.6%, 0%, 3.5%)
CIE-LABlab(63.69, 43.33, -51.07)
CIE-LCHlch(63.69, 66.97, 310.31°)
OKLaboklab(70.48% 0.0952 -0.1432)
OKLCHoklch(70.48% 0.172 303.6)
XYZxyz(44.0096, 32.4217, 91.1104)
Luminance0.3242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B781F6 #C0F681
analogous
#8185F6 #B781F6 #F181F6
triadic
#B781F6 #F6B781 #81F6B7
tetradic
#B781F6 #F68185 #C0F681 #81F6F1
square
#B781F6 #F68185 #C0F681 #81F6F1
split-complementary
#B781F6 #F6F181 #85F681
monochromatic
#7611EC #9648F2 #B781F6 #D8BAFA #EFE2FD

Accessibility & contrast

On white

2.81
#B781F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#B781F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B781F6
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B781F6#FFFFFF#000000##000000
##B781F61.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b781f6;
/* rgb */ color: rgb(183, 129, 246);
/* oklch */ color: oklch(70.5% 0.172 303.6);
Tailwind
colors: {
  custom: {
    50: '#cfa7fa',
    500: '#b781f6',
    950: '#000000',
  },
}
SCSS
$custom: #b781f6;
$custom-light: #cfa7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b781f6",
  "rgb": {
    "r": 183,
    "g": 129,
    "b": 246
  },
  "hsl": {
    "h": 267.692,
    "s": 86.667,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70479,
    "c": 0.17192,
    "h": 303.6
  },
  "luminance": 0.32422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B781F6

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

Preview Lab → · Contrast checker → · Palette generator →

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