#B398EA#B398EA

#B398EA is a light, moderate violet. Relative luminance 0.380; OKLCH L 73.5% C 0.119 H 298.6°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#B398EA
RGBrgb(179, 152, 234)
HSLhsl(260, 66%, 76%)
HSVhsv(260, 35%, 92%)
CMYKcmyk(23.5%, 35%, 0%, 8.2%)
CIE-LABlab(68.01, 26.64, -37.72)
CIE-LCHlch(68.01, 46.17, 305.23°)
OKLaboklab(73.47% 0.057 -0.1046)
OKLCHoklch(73.47% 0.119 298.6)
XYZxyz(44.6666, 37.9804, 82.8037)
Luminance0.3798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398EA #CFEA98
analogous
#98A6EA #B398EA #DC98EA
triadic
#B398EA #EAB398 #98EAB3
tetradic
#B398EA #EA98A6 #CFEA98 #98EADC
square
#B398EA #EA98A6 #CFEA98 #98EADC
split-complementary
#B398EA #EADC98 #A6EA98
monochromatic
#6832D5 #8D65E0 #B398EA #D9CBF4 #ECE6FA

Accessibility & contrast

On white

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

On black

8.60
#B398EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398EA
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398EA#FFFFFF#000000##000000
##B398EA1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6ED
Deuteranopia (green-blind)
#89A5E8
Tritanopia (blue-blind)
#A9A5B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b398ea;
/* rgb */ color: rgb(179, 152, 234);
/* oklch */ color: oklch(73.5% 0.119 298.6);
Tailwind
colors: {
  custom: {
    50: '#cbb6f1',
    500: '#b398ea',
    950: '#000000',
  },
}
SCSS
$custom: #b398ea;
$custom-light: #cbb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b398ea",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 259.756,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73468,
    "c": 0.11917,
    "h": 298.6
  },
  "luminance": 0.37981
}

Semantic roles & 50–950 ramp

primary
#B398EA
secondary
#EAF1DA
accent
#CE1892
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B398EA

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

Preview Lab → · Contrast checker → · Palette generator →

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