#B998F2#B998F2

#B998F2 is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.4% C 0.131 H 300.1°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#B998F2
RGBrgb(185, 152, 242)
HSLhsl(262, 78%, 77%)
HSVhsv(262, 37%, 95%)
CMYKcmyk(23.6%, 37.2%, 0%, 5.1%)
CIE-LABlab(68.88, 30.24, -40.69)
CIE-LCHlch(68.88, 50.70, 306.62°)
OKLaboklab(74.38% 0.0656 -0.1131)
OKLCHoklch(74.38% 0.131 300.1)
XYZxyz(47.2593, 39.1814, 89.0602)
Luminance0.3918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F2 #D1F298
analogous
#98A4F2 #B998F2 #E698F2
triadic
#B998F2 #F2B998 #98F2B9
tetradic
#B998F2 #F298A4 #D1F298 #98F2E6
square
#B998F2 #F298A4 #D1F298 #98F2E6
split-complementary
#B998F2 #F2E698 #A4F298
monochromatic
#6F2BE4 #9462EB #B998F2 #DECEF9 #EDE4FC

Accessibility & contrast

On white

2.38
#B998F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#B998F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F2#FFFFFF#000000##000000
##B998F21.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A8F5
Deuteranopia (green-blind)
#88A8F0
Tritanopia (blue-blind)
#AFA7BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b998f2;
/* rgb */ color: rgb(185, 152, 242);
/* oklch */ color: oklch(74.4% 0.131 300.1);
Tailwind
colors: {
  custom: {
    50: '#cfb6f6',
    500: '#b998f2',
    950: '#000000',
  },
}
SCSS
$custom: #b998f2;
$custom-light: #cfb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f2",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 262,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.74375,
    "c": 0.13076,
    "h": 300.1
  },
  "luminance": 0.39182
}

Semantic roles & 50–950 ramp

primary
#B998F2
secondary
#E9F3D8
accent
#DA0C8E
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#141117
muted
#828085

Preview Lab

Preview with #B998F2

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

Preview Lab → · Contrast checker → · Palette generator →

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