#B797FC#B797FC

#B797FC is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.5% C 0.145 H 297.4°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#B797FC
RGBrgb(183, 151, 252)
HSLhsl(259, 94%, 79%)
HSVhsv(259, 40%, 99%)
CMYKcmyk(27.4%, 40.1%, 0%, 1.2%)
CIE-LABlab(68.92, 32.60, -46.11)
CIE-LCHlch(68.92, 56.47, 305.26°)
OKLaboklab(74.5% 0.0666 -0.1288)
OKLCHoklch(74.5% 0.145 297.4)
XYZxyz(48.1616, 39.2283, 97.1110)
Luminance0.3923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FC #DCFC97
analogous
#97AAFC #B797FC #EA97FC
triadic
#B797FC #FCB797 #97FCB7
tetradic
#B797FC #FC97AA #DCFC97 #97FCEA
square
#B797FC #FC97AA #DCFC97 #97FCEA
split-complementary
#B797FC #FCEA97 #AAFC97
monochromatic
#6520F9 #8E5CFA #B797FC #E0D2FE #EAE1FE

Accessibility & contrast

On white

2.37
#B797FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#B797FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FC
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FC#FFFFFF#000000##000000
##B797FC1.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#81A7F9
Tritanopia (blue-blind)
#A9A9BE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797fc;
/* rgb */ color: rgb(183, 151, 252);
/* oklch */ color: oklch(74.5% 0.145 297.4);
Tailwind
colors: {
  custom: {
    50: '#ceb6fe',
    500: '#b797fc',
    950: '#000000',
  },
}
SCSS
$custom: #b797fc;
$custom-light: #ceb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b797fc",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 259.01,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.74504,
    "c": 0.14502,
    "h": 297.4
  },
  "luminance": 0.39229
}

Semantic roles & 50–950 ramp

primary
#B797FC
secondary
#ECF6D5
accent
#E6009D
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B797FC

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

Preview Lab → · Contrast checker → · Palette generator →

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