#B098FA#B098FA

#B098FA is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.140 H 294.0°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#B098FA
RGBrgb(176, 152, 250)
HSLhsl(255, 91%, 79%)
HSVhsv(255, 39%, 98%)
CMYKcmyk(29.6%, 39.2%, 0%, 2%)
CIE-LABlab(68.45, 29.64, -45.79)
CIE-LCHlch(68.45, 54.54, 302.91°)
OKLaboklab(73.98% 0.0569 -0.128)
OKLCHoklch(73.98% 0.14 294)
XYZxyz(46.3838, 38.5880, 95.4284)
Luminance0.3859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B098FA #E2FA98
analogous
#98B1FA #B098FA #E198FA
triadic
#B098FA #FAB098 #98FAB0
tetradic
#B098FA #FA98B1 #E2FA98 #98FAE1
square
#B098FA #FA98B1 #E2FA98 #98FAE1
split-complementary
#B098FA #FAE198 #B1FA98
monochromatic
#5623F4 #835EF7 #B098FA #DDD2FD #E9E2FE

Accessibility & contrast

On white

2.41
#B098FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#B098FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B098FA
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B098FA#FFFFFF#000000##000000
##B098FA1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#7FA5F8
Tritanopia (blue-blind)
#A0A9BD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b098fa;
/* rgb */ color: rgb(176, 152, 250);
/* oklch */ color: oklch(74.0% 0.140 294.0);
Tailwind
colors: {
  custom: {
    50: '#cab6fc',
    500: '#b098fa',
    950: '#000000',
  },
}
SCSS
$custom: #b098fa;
$custom-light: #cab6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b098fa",
  "rgb": {
    "r": 176,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 254.694,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73976,
    "c": 0.1401,
    "h": 294
  },
  "luminance": 0.38589
}

Semantic roles & 50–950 ramp

primary
#B098FA
secondary
#EEF6D5
accent
#E600AD
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B098FA

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

Preview Lab → · Contrast checker → · Palette generator →

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