#B997EC#B997EC

#B997EC is a light, vivid violet. Relative luminance 0.385; OKLCH L 73.9% C 0.125 H 301.8°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#B997EC
RGBrgb(185, 151, 236)
HSLhsl(264, 69%, 76%)
HSVhsv(264, 36%, 93%)
CMYKcmyk(21.6%, 36%, 0%, 7.5%)
CIE-LABlab(68.39, 29.41, -38.18)
CIE-LCHlch(68.39, 48.19, 307.61°)
OKLaboklab(73.92% 0.0657 -0.1058)
OKLCHoklch(73.92% 0.125 301.8)
XYZxyz(46.2113, 38.5036, 84.3380)
Luminance0.3850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B997EC #CAEC97
analogous
#979FEC #B997EC #E397EC
triadic
#B997EC #ECB997 #97ECB9
tetradic
#B997EC #EC979F #CAEC97 #97ECE3
square
#B997EC #EC979F #CAEC97 #97ECE3
split-complementary
#B997EC #ECE397 #9FEC97
monochromatic
#7330D9 #9663E3 #B997EC #DCCBF5 #EEE5FA

Accessibility & contrast

On white

2.41
#B997EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#B997EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B997EC
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B997EC#FFFFFF#000000##000000
##B997EC1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A6EF
Deuteranopia (green-blind)
#8AA6EA
Tritanopia (blue-blind)
#B0A5B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b997ec;
/* rgb */ color: rgb(185, 151, 236);
/* oklch */ color: oklch(73.9% 0.125 301.8);
Tailwind
colors: {
  custom: {
    50: '#cfb6f2',
    500: '#b997ec',
    950: '#000000',
  },
}
SCSS
$custom: #b997ec;
$custom-light: #cfb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b997ec",
  "rgb": {
    "r": 185,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 264,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73916,
    "c": 0.1246,
    "h": 301.8
  },
  "luminance": 0.38504
}

Semantic roles & 50–950 ramp

primary
#B997EC
secondary
#E8F2D9
accent
#D11486
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B997EC

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

Preview Lab → · Contrast checker → · Palette generator →

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