#B98AFF#B98AFF

#B98AFF is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.6% C 0.169 H 300.8°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B98AFF
RGBrgb(185, 138, 255)
HSLhsl(264, 100%, 77%)
HSVhsv(264, 46%, 100%)
CMYKcmyk(27.5%, 45.9%, 0%, 0%)
CIE-LABlab(66.30, 41.05, -51.86)
CIE-LCHlch(66.30, 66.14, 308.36°)
OKLaboklab(72.62% 0.0867 -0.1454)
OKLCHoklch(72.62% 0.169 300.8)
XYZxyz(47.1419, 35.7111, 98.9977)
Luminance0.3571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98AFF #D0FF8A
analogous
#8A95FF #B98AFF #F48AFF
triadic
#B98AFF #FFB98A #8AFFB9
tetradic
#B98AFF #FF8A95 #D0FF8A #8AFFF4
square
#B98AFF #FF8A95 #D0FF8A #8AFFF4
split-complementary
#B98AFF #FFF48A #95FF8A
monochromatic
#7010FF #944DFF #B98AFF #DEC7FF #EDE0FF

Accessibility & contrast

On white

2.58
#B98AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B98AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98AFF
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98AFF#FFFFFF#000000##000000
##B98AFF1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#67A1FF
Deuteranopia (green-blind)
#72A1FC
Tritanopia (blue-blind)
#AC9FB8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b98aff;
/* rgb */ color: rgb(185, 138, 255);
/* oklch */ color: oklch(72.6% 0.169 300.8);
Tailwind
colors: {
  custom: {
    50: '#d0adff',
    500: '#b98aff',
    950: '#000000',
  },
}
SCSS
$custom: #b98aff;
$custom-light: #d0adff;
$custom-dark: #000000;
JSON
{
  "hex": "#b98aff",
  "rgb": {
    "r": 185,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 264.103,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72621,
    "c": 0.16935,
    "h": 300.8
  },
  "luminance": 0.35711
}

Semantic roles & 50–950 ramp

primary
#B98AFF
secondary
#E9F7D4
accent
#E60089
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B98AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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