#B398FA#B398FA

#B398FA is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.2% C 0.140 H 295.5°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#B398FA
RGBrgb(179, 152, 250)
HSLhsl(257, 91%, 79%)
HSVhsv(257, 39%, 98%)
CMYKcmyk(28.4%, 39.2%, 0%, 2%)
CIE-LABlab(68.71, 30.46, -45.37)
CIE-LCHlch(68.71, 54.64, 303.88°)
OKLaboklab(74.23% 0.0603 -0.1267)
OKLCHoklch(74.23% 0.14 295.5)
XYZxyz(47.0698, 38.9417, 95.4606)
Luminance0.3894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398FA #DFFA98
analogous
#98AEFA #B398FA #E498FA
triadic
#B398FA #FAB398 #98FAB3
tetradic
#B398FA #FA98AE #DFFA98 #98FAE4
square
#B398FA #FA98AE #DFFA98 #98FAE4
split-complementary
#B398FA #FAE498 #AEFA98
monochromatic
#5D23F4 #885EF7 #B398FA #DED2FD #E9E2FE

Accessibility & contrast

On white

2.39
#B398FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#B398FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398FA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398FA#FFFFFF#000000##000000
##B398FA1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#81A6F7
Tritanopia (blue-blind)
#A4A9BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b398fa;
/* rgb */ color: rgb(179, 152, 250);
/* oklch */ color: oklch(74.2% 0.140 295.5);
Tailwind
colors: {
  custom: {
    50: '#ccb6fc',
    500: '#b398fa',
    950: '#000000',
  },
}
SCSS
$custom: #b398fa;
$custom-light: #ccb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b398fa",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 256.531,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74233,
    "c": 0.14037,
    "h": 295.5
  },
  "luminance": 0.38942
}

Semantic roles & 50–950 ramp

primary
#B398FA
secondary
#EDF6D5
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B398FA

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

Preview Lab → · Contrast checker → · Palette generator →

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