#B795EC#B795EC

#B795EC is a light, vivid violet. Relative luminance 0.376; OKLCH L 73.4% C 0.127 H 301.3°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#B795EC
RGBrgb(183, 149, 236)
HSLhsl(263, 70%, 75%)
HSVhsv(263, 37%, 93%)
CMYKcmyk(22.5%, 36.9%, 0%, 7.5%)
CIE-LABlab(67.74, 29.95, -39.21)
CIE-LCHlch(67.74, 49.33, 307.37°)
OKLaboklab(73.38% 0.0662 -0.1088)
OKLCHoklch(73.38% 0.127 301.3)
XYZxyz(45.4129, 37.6182, 84.2092)
Luminance0.3762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B795EC #CAEC95
analogous
#959EEC #B795EC #E295EC
triadic
#B795EC #ECB795 #95ECB7
tetradic
#B795EC #EC959E #CAEC95 #95ECE2
square
#B795EC #EC959E #CAEC95 #95ECE2
split-complementary
#B795EC #ECE295 #9EEC95
monochromatic
#702DD9 #9461E3 #B795EC #DAC9F5 #EDE5FA

Accessibility & contrast

On white

2.46
#B795EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#B795EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B795EC
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B795EC#FFFFFF#000000##000000
##B795EC1.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5EF
Deuteranopia (green-blind)
#87A5EA
Tritanopia (blue-blind)
#AEA3B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b795ec;
/* rgb */ color: rgb(183, 149, 236);
/* oklch */ color: oklch(73.4% 0.127 301.3);
Tailwind
colors: {
  custom: {
    50: '#ceb4f2',
    500: '#b795ec',
    950: '#000000',
  },
}
SCSS
$custom: #b795ec;
$custom-light: #ceb4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b795ec",
  "rgb": {
    "r": 183,
    "g": 149,
    "b": 236
  },
  "hsl": {
    "h": 263.448,
    "s": 69.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73377,
    "c": 0.1274,
    "h": 301.3
  },
  "luminance": 0.37618
}

Semantic roles & 50–950 ramp

primary
#B795EC
secondary
#E8F2D9
accent
#D21487
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B795EC

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

Preview Lab → · Contrast checker → · Palette generator →

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