#B795F7#B795F7

#B795F7 is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.9% C 0.142 H 298.9°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#B795F7
RGBrgb(183, 149, 247)
HSLhsl(261, 86%, 78%)
HSVhsv(261, 40%, 97%)
CMYKcmyk(25.9%, 39.7%, 0%, 3.1%)
CIE-LABlab(68.22, 32.52, -44.47)
CIE-LCHlch(68.22, 55.09, 306.18°)
OKLaboklab(73.91% 0.0684 -0.124)
OKLCHoklch(73.91% 0.142 298.9)
XYZxyz(47.0605, 38.2773, 92.8866)
Luminance0.3828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B795F7 #D5F795
analogous
#95A4F7 #B795F7 #E895F7
triadic
#B795F7 #F7B795 #95F7B7
tetradic
#B795F7 #F795A4 #D5F795 #95F7E8
square
#B795F7 #F795A4 #D5F795 #95F7E8
split-complementary
#B795F7 #F7E895 #A4F795
monochromatic
#6A23EE #905CF3 #B795F7 #DECEFB #ECE3FD

Accessibility & contrast

On white

2.43
#B795F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#B795F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B795F7
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B795F7#FFFFFF#000000##000000
##B795F71.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA6FB
Deuteranopia (green-blind)
#81A6F4
Tritanopia (blue-blind)
#ABA6BA
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b795f7;
/* rgb */ color: rgb(183, 149, 247);
/* oklch */ color: oklch(73.9% 0.142 298.9);
Tailwind
colors: {
  custom: {
    50: '#ceb4fa',
    500: '#b795f7',
    950: '#000000',
  },
}
SCSS
$custom: #b795f7;
$custom-light: #ceb4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b795f7",
  "rgb": {
    "r": 183,
    "g": 149,
    "b": 247
  },
  "hsl": {
    "h": 260.816,
    "s": 85.965,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73905,
    "c": 0.14166,
    "h": 298.9
  },
  "luminance": 0.38278
}

Semantic roles & 50–950 ramp

primary
#B795F7
secondary
#EAF5D6
accent
#E20395
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B795F7

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

Preview Lab → · Contrast checker → · Palette generator →

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