#B998F5#B998F5

#B998F5 is a light, vivid violet. Relative luminance 0.394; OKLCH L 74.5% C 0.135 H 299.5°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#B998F5
RGBrgb(185, 152, 245)
HSLhsl(261, 82%, 78%)
HSVhsv(261, 38%, 96%)
CMYKcmyk(24.5%, 38%, 0%, 3.9%)
CIE-LABlab(69.01, 30.94, -42.13)
CIE-LCHlch(69.01, 52.27, 306.30°)
OKLaboklab(74.52% 0.0662 -0.1172)
OKLCHoklch(74.52% 0.135 299.5)
XYZxyz(47.7135, 39.3631, 91.4526)
Luminance0.3936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F5 #D4F598
analogous
#98A5F5 #B998F5 #E798F5
triadic
#B998F5 #F5B998 #98F5B9
tetradic
#B998F5 #F598A5 #D4F598 #98F5E7
square
#B998F5 #F598A5 #D4F598 #98F5E7
split-complementary
#B998F5 #F5E798 #A5F598
monochromatic
#6D28EA #9360F0 #B998F5 #DFD0FA #ECE3FC

Accessibility & contrast

On white

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

On black

8.87
#B998F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F5#FFFFFF#000000##000000
##B998F51.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A8F9
Deuteranopia (green-blind)
#86A8F3
Tritanopia (blue-blind)
#AEA8BB
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b998f5;
/* rgb */ color: rgb(185, 152, 245);
/* oklch */ color: oklch(74.5% 0.135 299.5);
Tailwind
colors: {
  custom: {
    50: '#cfb6f9',
    500: '#b998f5',
    950: '#000000',
  },
}
SCSS
$custom: #b998f5;
$custom-light: #cfb6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f5",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 245
  },
  "hsl": {
    "h": 261.29,
    "s": 82.301,
    "l": 77.843
  },
  "oklch": {
    "l": 0.74517,
    "c": 0.13466,
    "h": 299.5
  },
  "luminance": 0.39363
}

Semantic roles & 50–950 ramp

primary
#B998F5
secondary
#EAF4D7
accent
#DF0792
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998F5

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

Preview Lab → · Contrast checker → · Palette generator →

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