#B997EF#B997EF

#B997EF is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.1% C 0.128 H 301.1°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#B997EF
RGBrgb(185, 151, 239)
HSLhsl(263, 73%, 76%)
HSVhsv(263, 37%, 94%)
CMYKcmyk(22.6%, 36.8%, 0%, 6.3%)
CIE-LABlab(68.52, 30.10, -39.62)
CIE-LCHlch(68.52, 49.76, 307.23°)
OKLaboklab(74.06% 0.0664 -0.11)
OKLCHoklch(74.06% 0.128 301.1)
XYZxyz(46.6508, 38.6794, 86.6528)
Luminance0.3868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B997EF #CDEF97
analogous
#97A1EF #B997EF #E597EF
triadic
#B997EF #EFB997 #97EFB9
tetradic
#B997EF #EF97A1 #CDEF97 #97EFE5
square
#B997EF #EF97A1 #CDEF97 #97EFE5
split-complementary
#B997EF #EFE597 #A1EF97
monochromatic
#722DDF #9562E7 #B997EF #DDCCF7 #EDE4FB

Accessibility & contrast

On white

2.40
#B997EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#B997EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B997EF
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B997EF#FFFFFF#000000##000000
##B997EF1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A7F2
Deuteranopia (green-blind)
#88A7ED
Tritanopia (blue-blind)
#AFA5B8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b997ef;
/* rgb */ color: rgb(185, 151, 239);
/* oklch */ color: oklch(74.1% 0.128 301.1);
Tailwind
colors: {
  custom: {
    50: '#cfb6f4',
    500: '#b997ef',
    950: '#000000',
  },
}
SCSS
$custom: #b997ef;
$custom-light: #cfb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b997ef",
  "rgb": {
    "r": 185,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 263.182,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74055,
    "c": 0.12848,
    "h": 301.1
  },
  "luminance": 0.3868
}

Semantic roles & 50–950 ramp

primary
#B997EF
secondary
#E8F3D8
accent
#D51089
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B997EF

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

Preview Lab → · Contrast checker → · Palette generator →

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