#B998F3#B998F3

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

Color values

HEX#B998F3
RGBrgb(185, 152, 243)
HSLhsl(262, 79%, 77%)
HSVhsv(262, 37%, 95%)
CMYKcmyk(23.9%, 37.4%, 0%, 4.7%)
CIE-LABlab(68.93, 30.47, -41.17)
CIE-LCHlch(68.93, 51.22, 306.51°)
OKLaboklab(74.42% 0.0658 -0.1145)
OKLCHoklch(74.42% 0.132 299.9)
XYZxyz(47.4099, 39.2416, 89.8533)
Luminance0.3924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F3 #D2F398
analogous
#98A5F3 #B998F3 #E698F3
triadic
#B998F3 #F3B998 #98F3B9
tetradic
#B998F3 #F398A5 #D2F398 #98F3E6
square
#B998F3 #F398A5 #D2F398 #98F3E6
split-complementary
#B998F3 #F3E698 #A5F398
monochromatic
#6E2AE6 #9461ED #B998F3 #DECFF9 #ECE4FC

Accessibility & contrast

On white

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

On black

8.85
#B998F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F3
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F3#FFFFFF#000000##000000
##B998F31.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A8F7
Deuteranopia (green-blind)
#87A8F1
Tritanopia (blue-blind)
#AEA7BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b998f3;
/* rgb */ color: rgb(185, 152, 243);
/* oklch */ color: oklch(74.4% 0.132 299.9);
Tailwind
colors: {
  custom: {
    50: '#cfb6f7',
    500: '#b998f3',
    950: '#000000',
  },
}
SCSS
$custom: #b998f3;
$custom-light: #cfb6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f3",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 243
  },
  "hsl": {
    "h": 261.758,
    "s": 79.13,
    "l": 77.451
  },
  "oklch": {
    "l": 0.74422,
    "c": 0.13206,
    "h": 299.9
  },
  "luminance": 0.39242
}

Semantic roles & 50–950 ramp

primary
#B998F3
secondary
#E9F4D7
accent
#DB0A90
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998F3

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

Preview Lab → · Contrast checker → · Palette generator →

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