#B998FF#B998FF

#B998FF is a light, vivid violet. Relative luminance 0.400; OKLCH L 75.0% C 0.148 H 297.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#B998FF
RGBrgb(185, 152, 255)
HSLhsl(259, 100%, 80%)
HSVhsv(259, 40%, 100%)
CMYKcmyk(27.5%, 40.4%, 0%, 0%)
CIE-LABlab(69.46, 33.31, -46.87)
CIE-LCHlch(69.46, 57.50, 305.40°)
OKLaboklab(75.01% 0.0681 -0.131)
OKLCHoklch(75.01% 0.148 297.5)
XYZxyz(49.2816, 39.9903, 99.7109)
Luminance0.3999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998FF #DEFF98
analogous
#98ABFF #B998FF #EC98FF
triadic
#B998FF #FFB998 #98FFB9
tetradic
#B998FF #FF98AB #DEFF98 #98FFEC
square
#B998FF #FF98AB #DEFF98 #98FFEC
split-complementary
#B998FF #FFEC98 #ABFF98
monochromatic
#661EFF #8F5BFF #B998FF #E3D5FF #EAE0FF

Accessibility & contrast

On white

2.33
#B998FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#B998FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998FF
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998FF#FFFFFF#000000##000000
##B998FF1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BAAFF
Deuteranopia (green-blind)
#81A9FC
Tritanopia (blue-blind)
#ABAABF
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b998ff;
/* rgb */ color: rgb(185, 152, 255);
/* oklch */ color: oklch(75.0% 0.148 297.5);
Tailwind
colors: {
  custom: {
    50: '#d0b6ff',
    500: '#b998ff',
    950: '#000000',
  },
}
SCSS
$custom: #b998ff;
$custom-light: #d0b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b998ff",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 259.223,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.75005,
    "c": 0.14764,
    "h": 297.5
  },
  "luminance": 0.39991
}

Semantic roles & 50–950 ramp

primary
#B998FF
secondary
#ECF7D4
accent
#E6009C
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B998FF

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

Preview Lab → · Contrast checker → · Palette generator →

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