#B398DC#B398DC

#B398DC is a light, moderate violet. Relative luminance 0.372; OKLCH L 72.8% C 0.101 H 302.2°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#B398DC
RGBrgb(179, 152, 220)
HSLhsl(264, 49%, 73%)
HSVhsv(264, 31%, 86%)
CMYKcmyk(18.6%, 30.9%, 0%, 13.7%)
CIE-LABlab(67.43, 23.42, -30.90)
CIE-LCHlch(67.43, 38.77, 307.16°)
OKLaboklab(72.84% 0.0536 -0.0851)
OKLCHoklch(72.84% 0.101 302.2)
XYZxyz(42.7342, 37.2075, 72.6267)
Luminance0.3721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398DC #C1DC98
analogous
#989FDC #B398DC #D598DC
triadic
#B398DC #DCB398 #98DCB3
tetradic
#B398DC #DC989F #C1DC98 #98DCD5
square
#B398DC #DC989F #C1DC98 #98DCD5
split-complementary
#B398DC #DCD598 #9FDC98
monochromatic
#703FBA #916ACC #B398DC #D5C6EC #EEE8F7

Accessibility & contrast

On white

2.49
#B398DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#B398DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398DC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398DC#FFFFFF#000000##000000
##B398DC1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA4DF
Deuteranopia (green-blind)
#8FA4DA
Tritanopia (blue-blind)
#ACA2B0
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b398dc;
/* rgb */ color: rgb(179, 152, 220);
/* oklch */ color: oklch(72.8% 0.101 302.2);
Tailwind
colors: {
  custom: {
    50: '#cab6e7',
    500: '#b398dc',
    950: '#000000',
  },
}
SCSS
$custom: #b398dc;
$custom-light: #cab6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b398dc",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 263.824,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7284,
    "c": 0.10057,
    "h": 302.2
  },
  "luminance": 0.37207
}

Semantic roles & 50–950 ramp

primary
#B398DC
secondary
#E7EEDD
accent
#BD2982
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B398DC

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

Preview Lab → · Contrast checker → · Palette generator →

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