#B398F9#B398F9

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

Color values

HEX#B398F9
RGBrgb(179, 152, 249)
HSLhsl(257, 89%, 79%)
HSVhsv(257, 39%, 98%)
CMYKcmyk(28.1%, 39%, 0%, 2.4%)
CIE-LABlab(68.66, 30.22, -44.90)
CIE-LCHlch(68.66, 54.12, 303.94°)
OKLaboklab(74.18% 0.0601 -0.1254)
OKLCHoklch(74.18% 0.139 295.6)
XYZxyz(46.9134, 38.8791, 94.6370)
Luminance0.3888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398F9 #DEF998
analogous
#98ADF9 #B398F9 #E398F9
triadic
#B398F9 #F9B398 #98F9B3
tetradic
#B398F9 #F998AD #DEF998 #98F9E3
square
#B398F9 #F998AD #DEF998 #98F9E3
split-complementary
#B398F9 #F9E398 #ADF998
monochromatic
#5E24F2 #885EF6 #B398F9 #DED2FC #EAE2FD

Accessibility & contrast

On white

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

On black

8.78
#B398F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398F9
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398F9#FFFFFF#000000##000000
##B398F91.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b398f9;
/* rgb */ color: rgb(179, 152, 249);
/* oklch */ color: oklch(74.2% 0.139 295.6);
Tailwind
colors: {
  custom: {
    50: '#ccb6fb',
    500: '#b398f9',
    950: '#000000',
  },
}
SCSS
$custom: #b398f9;
$custom-light: #ccb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b398f9",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 256.701,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74184,
    "c": 0.13905,
    "h": 295.6
  },
  "luminance": 0.3888
}

Semantic roles & 50–950 ramp

primary
#B398F9
secondary
#EDF5D6
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B398F9

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

Preview Lab → · Contrast checker → · Palette generator →

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