#B791EA#B791EA

#B791EA is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.6% C 0.131 H 302.9°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B791EA
RGBrgb(183, 145, 234)
HSLhsl(266, 68%, 74%)
HSVhsv(266, 38%, 92%)
CMYKcmyk(21.8%, 38%, 0%, 8.2%)
CIE-LABlab(66.72, 31.72, -39.70)
CIE-LCHlch(66.72, 50.81, 308.62°)
OKLaboklab(72.57% 0.0714 -0.1103)
OKLCHoklch(72.57% 0.131 302.9)
XYZxyz(44.5020, 36.2586, 82.4801)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B791EA #C4EA91
analogous
#9198EA #B791EA #E491EA
triadic
#B791EA #EAB791 #91EAB7
tetradic
#B791EA #EA9198 #C4EA91 #91EAE4
square
#B791EA #EA9198 #C4EA91 #91EAE4
split-complementary
#B791EA #EAE491 #98EA91
monochromatic
#742AD6 #955EE0 #B791EA #D9C4F4 #EEE5FA

Accessibility & contrast

On white

2.54
#B791EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B791EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B791EA
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B791EA#FFFFFF#000000##000000
##B791EA1.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA1ED
Deuteranopia (green-blind)
#84A2E8
Tritanopia (blue-blind)
#AE9FB3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b791ea;
/* rgb */ color: rgb(183, 145, 234);
/* oklch */ color: oklch(72.6% 0.131 302.9);
Tailwind
colors: {
  custom: {
    50: '#ceb1f1',
    500: '#b791ea',
    950: '#000000',
  },
}
SCSS
$custom: #b791ea;
$custom-light: #ceb1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b791ea",
  "rgb": {
    "r": 183,
    "g": 145,
    "b": 234
  },
  "hsl": {
    "h": 265.618,
    "s": 67.939,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72573,
    "c": 0.13136,
    "h": 302.9
  },
  "luminance": 0.36259
}

Semantic roles & 50–950 ramp

primary
#B791EA
secondary
#E7F2D9
accent
#D01680
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#141116
muted
#828084

Preview Lab

Preview with #B791EA

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

Preview Lab → · Contrast checker → · Palette generator →

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