#B998F7#B998F7

#B998F7 is a light, vivid violet. Relative luminance 0.395; OKLCH L 74.6% C 0.137 H 299.0°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#B998F7
RGBrgb(185, 152, 247)
HSLhsl(261, 86%, 78%)
HSVhsv(261, 38%, 97%)
CMYKcmyk(25.1%, 38.5%, 0%, 3.1%)
CIE-LABlab(69.10, 31.41, -43.08)
CIE-LCHlch(69.10, 53.32, 306.10°)
OKLaboklab(74.61% 0.0666 -0.12)
OKLCHoklch(74.61% 0.137 299)
XYZxyz(48.0205, 39.4859, 93.0693)
Luminance0.3949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F7 #D6F798
analogous
#98A6F7 #B998F7 #E898F7
triadic
#B998F7 #F7B998 #98F7B9
tetradic
#B998F7 #F798A6 #D6F798 #98F7E8
square
#B998F7 #F798A6 #D6F798 #98F7E8
split-complementary
#B998F7 #F7E898 #A6F798
monochromatic
#6C26EE #925FF3 #B998F7 #E0D1FB #ECE3FD

Accessibility & contrast

On white

2.36
#B998F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#B998F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F7
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F7#FFFFFF#000000##000000
##B998F71.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA9FB
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#ADA8BC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b998f7;
/* rgb */ color: rgb(185, 152, 247);
/* oklch */ color: oklch(74.6% 0.137 299.0);
Tailwind
colors: {
  custom: {
    50: '#d0b6fa',
    500: '#b998f7',
    950: '#000000',
  },
}
SCSS
$custom: #b998f7;
$custom-light: #d0b6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f7",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 247
  },
  "hsl": {
    "h": 260.842,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.74613,
    "c": 0.13725,
    "h": 299
  },
  "luminance": 0.39486
}

Semantic roles & 50–950 ramp

primary
#B998F7
secondary
#EAF5D6
accent
#E20395
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998F7

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

Preview Lab → · Contrast checker → · Palette generator →

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