#B398EB#B398EB

#B398EB is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.5% C 0.120 H 298.4°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#B398EB
RGBrgb(179, 152, 235)
HSLhsl(260, 67%, 76%)
HSVhsv(260, 35%, 92%)
CMYKcmyk(23.8%, 35.3%, 0%, 7.8%)
CIE-LABlab(68.05, 26.87, -38.20)
CIE-LCHlch(68.05, 46.70, 305.13°)
OKLaboklab(73.51% 0.0572 -0.106)
OKLCHoklch(73.51% 0.121 298.4)
XYZxyz(44.8106, 38.0380, 83.5624)
Luminance0.3804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398EB #D0EB98
analogous
#98A6EB #B398EB #DC98EB
triadic
#B398EB #EBB398 #98EBB3
tetradic
#B398EB #EB98A6 #D0EB98 #98EBDC
square
#B398EB #EB98A6 #D0EB98 #98EBDC
split-complementary
#B398EB #EBDC98 #A6EB98
monochromatic
#6732D7 #8D65E1 #B398EB #D9CBF5 #ECE5FA

Accessibility & contrast

On white

2.44
#B398EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#B398EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398EB
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398EB#FFFFFF#000000##000000
##B398EB1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6EE
Deuteranopia (green-blind)
#88A5E9
Tritanopia (blue-blind)
#A8A6B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b398eb;
/* rgb */ color: rgb(179, 152, 235);
/* oklch */ color: oklch(73.5% 0.120 298.4);
Tailwind
colors: {
  custom: {
    50: '#cbb6f1',
    500: '#b398eb',
    950: '#000000',
  },
}
SCSS
$custom: #b398eb;
$custom-light: #cbb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b398eb",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 259.518,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73514,
    "c": 0.1205,
    "h": 298.4
  },
  "luminance": 0.38038
}

Semantic roles & 50–950 ramp

primary
#B398EB
secondary
#EAF2D9
accent
#CF1693
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B398EB

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

Preview Lab → · Contrast checker → · Palette generator →

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