#B998FA#B998FA

#B998FA is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.8% C 0.141 H 298.4°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#B998FA
RGBrgb(185, 152, 250)
HSLhsl(260, 91%, 79%)
HSVhsv(260, 39%, 98%)
CMYKcmyk(26%, 39.2%, 0%, 2%)
CIE-LABlab(69.24, 32.12, -44.51)
CIE-LCHlch(69.24, 54.89, 305.82°)
OKLaboklab(74.76% 0.0672 -0.1241)
OKLCHoklch(74.76% 0.141 298.4)
XYZxyz(48.4871, 39.6725, 95.5270)
Luminance0.3967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998FA #D9FA98
analogous
#98A8FA #B998FA #EA98FA
triadic
#B998FA #FAB998 #98FAB9
tetradic
#B998FA #FA98A8 #D9FA98 #98FAEA
square
#B998FA #FA98A8 #D9FA98 #98FAEA
split-complementary
#B998FA #FAEA98 #A8FA98
monochromatic
#6A23F4 #915EF7 #B998FA #E1D2FD #EBE2FE

Accessibility & contrast

On white

2.35
#B998FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#B998FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998FA
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998FA#FFFFFF#000000##000000
##B998FA1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FE
Deuteranopia (green-blind)
#84A8F7
Tritanopia (blue-blind)
#ACA9BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b998fa;
/* rgb */ color: rgb(185, 152, 250);
/* oklch */ color: oklch(74.8% 0.141 298.4);
Tailwind
colors: {
  custom: {
    50: '#d0b6fc',
    500: '#b998fa',
    950: '#000000',
  },
}
SCSS
$custom: #b998fa;
$custom-light: #d0b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b998fa",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 260.204,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74759,
    "c": 0.14115,
    "h": 298.4
  },
  "luminance": 0.39673
}

Semantic roles & 50–950 ramp

primary
#B998FA
secondary
#EBF6D5
accent
#E60098
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998FA

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

Preview Lab → · Contrast checker → · Palette generator →

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