#B398E5#B398E5

#B398E5 is a light, moderate violet. Relative luminance 0.377; OKLCH L 73.2% C 0.113 H 299.7°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#B398E5
RGBrgb(179, 152, 229)
HSLhsl(261, 60%, 75%)
HSVhsv(261, 34%, 90%)
CMYKcmyk(21.8%, 33.6%, 0%, 10.2%)
CIE-LABlab(67.80, 25.47, -35.29)
CIE-LCHlch(67.80, 43.53, 305.82°)
OKLaboklab(73.24% 0.0558 -0.0977)
OKLCHoklch(73.24% 0.113 299.7)
XYZxyz(43.9584, 37.6971, 79.0740)
Luminance0.3770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398E5 #CAE598
analogous
#98A4E5 #B398E5 #DA98E5
triadic
#B398E5 #E5B398 #98E5B3
tetradic
#B398E5 #E598A4 #CAE598 #98E5DA
square
#B398E5 #E598A4 #CAE598 #98E5DA
split-complementary
#B398E5 #E5DA98 #A4E598
monochromatic
#6B36CC #8F67D9 #B398E5 #D7C9F1 #EDE7F9

Accessibility & contrast

On white

2.46
#B398E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#B398E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398E5
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398E5#FFFFFF#000000##000000
##B398E51.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A5E8
Deuteranopia (green-blind)
#8BA5E3
Tritanopia (blue-blind)
#AAA4B4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b398e5;
/* rgb */ color: rgb(179, 152, 229);
/* oklch */ color: oklch(73.2% 0.113 299.7);
Tailwind
colors: {
  custom: {
    50: '#cbb6ed',
    500: '#b398e5',
    950: '#000000',
  },
}
SCSS
$custom: #b398e5;
$custom-light: #cbb6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b398e5",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 229
  },
  "hsl": {
    "h": 261.039,
    "s": 59.69,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73239,
    "c": 0.11252,
    "h": 299.7
  },
  "luminance": 0.37697
}

Semantic roles & 50–950 ramp

primary
#B398E5
secondary
#E9F0DB
accent
#C71E8C
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B398E5

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

Preview Lab → · Contrast checker → · Palette generator →

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