#B998F4#B998F4

#B998F4 is a light, vivid violet. Relative luminance 0.393; OKLCH L 74.5% C 0.133 H 299.7°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#B998F4
RGBrgb(185, 152, 244)
HSLhsl(262, 81%, 78%)
HSVhsv(262, 38%, 96%)
CMYKcmyk(24.2%, 37.7%, 0%, 4.3%)
CIE-LABlab(68.97, 30.71, -41.65)
CIE-LCHlch(68.97, 51.75, 306.40°)
OKLaboklab(74.47% 0.066 -0.1159)
OKLCHoklch(74.47% 0.133 299.7)
XYZxyz(47.5613, 39.3022, 90.6508)
Luminance0.3930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F4 #D3F498
analogous
#98A5F4 #B998F4 #E798F4
triadic
#B998F4 #F4B998 #98F4B9
tetradic
#B998F4 #F498A5 #D3F498 #98F4E7
square
#B998F4 #F498A5 #D3F498 #98F4E7
split-complementary
#B998F4 #F4E798 #A5F498
monochromatic
#6E29E8 #9361EE #B998F4 #DFCFFA #ECE3FC

Accessibility & contrast

On white

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

On black

8.86
#B998F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F4
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F4#FFFFFF#000000##000000
##B998F41.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A8F8
Deuteranopia (green-blind)
#87A8F2
Tritanopia (blue-blind)
#AEA7BB
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b998f4;
/* rgb */ color: rgb(185, 152, 244);
/* oklch */ color: oklch(74.5% 0.133 299.7);
Tailwind
colors: {
  custom: {
    50: '#cfb6f8',
    500: '#b998f4',
    950: '#000000',
  },
}
SCSS
$custom: #b998f4;
$custom-light: #cfb6f8;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f4",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 244
  },
  "hsl": {
    "h": 261.522,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74469,
    "c": 0.13336,
    "h": 299.7
  },
  "luminance": 0.39302
}

Semantic roles & 50–950 ramp

primary
#B998F4
secondary
#EAF4D7
accent
#DD0891
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998F4

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

Preview Lab → · Contrast checker → · Palette generator →

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