#B98FF2#B98FF2

#B98FF2 is a light, vivid violet. Relative luminance 0.364; OKLCH L 72.8% C 0.145 H 302.5°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#B98FF2
RGBrgb(185, 143, 242)
HSLhsl(265, 79%, 75%)
HSVhsv(265, 41%, 95%)
CMYKcmyk(23.6%, 40.9%, 0%, 5.1%)
CIE-LABlab(66.80, 35.24, -43.95)
CIE-LCHlch(66.80, 56.34, 308.72°)
OKLaboklab(72.8% 0.078 -0.1225)
OKLCHoklch(72.8% 0.145 302.5)
XYZxyz(45.8536, 36.3700, 88.5916)
Luminance0.3637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98FF2 #C8F28F
analogous
#8F96F2 #B98FF2 #EB8FF2
triadic
#B98FF2 #F2B98F #8FF2B9
tetradic
#B98FF2 #F28F96 #C8F28F #8FF2EB
square
#B98FF2 #F28F96 #C8F28F #8FF2EB
split-complementary
#B98FF2 #F2EB8F #96F28F
monochromatic
#7421E5 #9758EC #B98FF2 #DBC6F8 #EEE4FC

Accessibility & contrast

On white

2.54
#B98FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#B98FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98FF2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98FF2#FFFFFF#000000##000000
##B98FF21.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#7FA2EF
Tritanopia (blue-blind)
#AF9FB5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98ff2;
/* rgb */ color: rgb(185, 143, 242);
/* oklch */ color: oklch(72.8% 0.145 302.5);
Tailwind
colors: {
  custom: {
    50: '#d0b0f7',
    500: '#b98ff2',
    950: '#000000',
  },
}
SCSS
$custom: #b98ff2;
$custom-light: #d0b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b98ff2",
  "rgb": {
    "r": 185,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 265.455,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72798,
    "c": 0.14523,
    "h": 302.5
  },
  "luminance": 0.3637
}

Semantic roles & 50–950 ramp

primary
#B98FF2
secondary
#E8F4D7
accent
#DB0A83
background
#FCFAFF
surface
#F9F5FE
border
#D2CFD6
text
#141017
muted
#827F85

Preview Lab

Preview with #B98FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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