#B298FA#B298FA

#B298FA is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.1% C 0.140 H 295.0°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B298FA
RGBrgb(178, 152, 250)
HSLhsl(256, 91%, 79%)
HSVhsv(256, 39%, 98%)
CMYKcmyk(28.8%, 39.2%, 0%, 2%)
CIE-LABlab(68.62, 30.18, -45.51)
CIE-LCHlch(68.62, 54.61, 303.55°)
OKLaboklab(74.15% 0.0592 -0.1272)
OKLCHoklch(74.15% 0.14 295)
XYZxyz(46.8394, 38.8229, 95.4498)
Luminance0.3882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B298FA #E0FA98
analogous
#98AFFA #B298FA #E398FA
triadic
#B298FA #FAB298 #98FAB2
tetradic
#B298FA #FA98AF #E0FA98 #98FAE3
square
#B298FA #FA98AF #E0FA98 #98FAE3
split-complementary
#B298FA #FAE398 #AFFA98
monochromatic
#5B23F4 #865EF7 #B298FA #DED2FD #E9E2FE

Accessibility & contrast

On white

2.40
#B298FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B298FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B298FA
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B298FA#FFFFFF#000000##000000
##B298FA1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#80A6F8
Tritanopia (blue-blind)
#A3A9BD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b298fa;
/* rgb */ color: rgb(178, 152, 250);
/* oklch */ color: oklch(74.1% 0.140 295.0);
Tailwind
colors: {
  custom: {
    50: '#cbb6fc',
    500: '#b298fa',
    950: '#000000',
  },
}
SCSS
$custom: #b298fa;
$custom-light: #cbb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b298fa",
  "rgb": {
    "r": 178,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 255.918,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74147,
    "c": 0.14027,
    "h": 295
  },
  "luminance": 0.38824
}

Semantic roles & 50–950 ramp

primary
#B298FA
secondary
#EDF6D5
accent
#E600A9
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B298FA

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

Preview Lab → · Contrast checker → · Palette generator →

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