#B795F8#B795F8

#B795F8 is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.0% C 0.143 H 298.7°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#B795F8
RGBrgb(183, 149, 248)
HSLhsl(261, 88%, 78%)
HSVhsv(261, 40%, 97%)
CMYKcmyk(26.2%, 39.9%, 0%, 2.7%)
CIE-LABlab(68.27, 32.76, -44.94)
CIE-LCHlch(68.27, 55.61, 306.09°)
OKLaboklab(73.95% 0.0686 -0.1254)
OKLCHoklch(73.95% 0.143 298.7)
XYZxyz(47.2152, 38.3392, 93.7015)
Luminance0.3834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B795F8 #D6F895
analogous
#95A4F8 #B795F8 #E895F8
triadic
#B795F8 #F8B795 #95F8B7
tetradic
#B795F8 #F895A4 #D6F895 #95F8E8
square
#B795F8 #F895A4 #D6F895 #95F8E8
split-complementary
#B795F8 #F8E895 #A4F895
monochromatic
#6922F0 #905CF4 #B795F8 #DECEFC #ECE2FD

Accessibility & contrast

On white

2.42
#B795F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#B795F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B795F8
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B795F8#FFFFFF#000000##000000
##B795F81.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA6FC
Deuteranopia (green-blind)
#81A6F5
Tritanopia (blue-blind)
#AAA6BB
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b795f8;
/* rgb */ color: rgb(183, 149, 248);
/* oklch */ color: oklch(74.0% 0.143 298.7);
Tailwind
colors: {
  custom: {
    50: '#ceb4fb',
    500: '#b795f8',
    950: '#000000',
  },
}
SCSS
$custom: #b795f8;
$custom-light: #ceb4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b795f8",
  "rgb": {
    "r": 183,
    "g": 149,
    "b": 248
  },
  "hsl": {
    "h": 260.606,
    "s": 87.611,
    "l": 77.843
  },
  "oklch": {
    "l": 0.73954,
    "c": 0.14296,
    "h": 298.7
  },
  "luminance": 0.38339
}

Semantic roles & 50–950 ramp

primary
#B795F8
secondary
#EAF5D6
accent
#E40196
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B795F8

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

Preview Lab → · Contrast checker → · Palette generator →

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