#B791F6#B791F6

#B791F6 is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.2% C 0.147 H 300.1°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#B791F6
RGBrgb(183, 145, 246)
HSLhsl(263, 85%, 77%)
HSVhsv(263, 41%, 96%)
CMYKcmyk(25.6%, 41.1%, 0%, 3.5%)
CIE-LABlab(67.26, 34.51, -45.44)
CIE-LCHlch(67.26, 57.06, 307.21°)
OKLaboklab(73.16% 0.0737 -0.1269)
OKLCHoklch(73.16% 0.147 300.1)
XYZxyz(46.2846, 36.9717, 91.8687)
Luminance0.3697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B791F6 #D0F691
analogous
#919EF6 #B791F6 #E991F6
triadic
#B791F6 #F6B791 #91F6B7
tetradic
#B791F6 #F6919E #D0F691 #91F6E9
square
#B791F6 #F6919E #D0F691 #91F6E9
split-complementary
#B791F6 #F6E991 #9EF691
monochromatic
#6D20ED #9258F1 #B791F6 #DCCAFB #ECE3FD

Accessibility & contrast

On white

2.50
#B791F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B791F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B791F6
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B791F6#FFFFFF#000000##000000
##B791F61.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A3FA
Deuteranopia (green-blind)
#7EA3F3
Tritanopia (blue-blind)
#ABA2B8
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b791f6;
/* rgb */ color: rgb(183, 145, 246);
/* oklch */ color: oklch(73.2% 0.147 300.1);
Tailwind
colors: {
  custom: {
    50: '#ceb1f9',
    500: '#b791f6',
    950: '#000000',
  },
}
SCSS
$custom: #b791f6;
$custom-light: #ceb1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b791f6",
  "rgb": {
    "r": 183,
    "g": 145,
    "b": 246
  },
  "hsl": {
    "h": 262.574,
    "s": 84.874,
    "l": 76.667
  },
  "oklch": {
    "l": 0.73157,
    "c": 0.1467,
    "h": 300.1
  },
  "luminance": 0.36972
}

Semantic roles & 50–950 ramp

primary
#B791F6
secondary
#E9F5D6
accent
#E1048E
background
#FCFAFF
surface
#F9F5FF
border
#D2CFD7
text
#141117
muted
#828085

Preview Lab

Preview with #B791F6

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

Preview Lab → · Contrast checker → · Palette generator →

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