#B398E8#B398E8

#B398E8 is a light, moderate violet. Relative luminance 0.379; OKLCH L 73.4% C 0.117 H 299.0°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#B398E8
RGBrgb(179, 152, 232)
HSLhsl(260, 63%, 75%)
HSVhsv(260, 34%, 91%)
CMYKcmyk(22.8%, 34.5%, 0%, 9%)
CIE-LABlab(67.92, 26.17, -36.75)
CIE-LCHlch(67.92, 45.12, 305.46°)
OKLaboklab(73.38% 0.0565 -0.1019)
OKLCHoklch(73.38% 0.117 299)
XYZxyz(44.3809, 37.8661, 81.2990)
Luminance0.3787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398E8 #CDE898
analogous
#98A5E8 #B398E8 #DB98E8
triadic
#B398E8 #E8B398 #98E8B3
tetradic
#B398E8 #E898A5 #CDE898 #98E8DB
square
#B398E8 #E898A5 #CDE898 #98E8DB
split-complementary
#B398E8 #E8DB98 #A5E898
monochromatic
#6934D2 #8E66DD #B398E8 #D8CAF3 #EDE6F9

Accessibility & contrast

On white

2.45
#B398E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#B398E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398E8
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398E8#FFFFFF#000000##000000
##B398E81.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A5EB
Deuteranopia (green-blind)
#89A5E6
Tritanopia (blue-blind)
#A9A5B5
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b398e8;
/* rgb */ color: rgb(179, 152, 232);
/* oklch */ color: oklch(73.4% 0.117 299.0);
Tailwind
colors: {
  custom: {
    50: '#cbb6ef',
    500: '#b398e8',
    950: '#000000',
  },
}
SCSS
$custom: #b398e8;
$custom-light: #cbb6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b398e8",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 232
  },
  "hsl": {
    "h": 260.25,
    "s": 63.492,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73376,
    "c": 0.11651,
    "h": 299
  },
  "luminance": 0.37866
}

Semantic roles & 50–950 ramp

primary
#B398E8
secondary
#E9F1DA
accent
#CB1A90
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B398E8

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

Preview Lab → · Contrast checker → · Palette generator →

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