#B398CD#B398CD

#B398CD is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.2% C 0.081 H 307.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B398CD
RGBrgb(179, 152, 205)
HSLhsl(271, 35%, 70%)
HSVhsv(271, 26%, 80%)
CMYKcmyk(12.7%, 25.9%, 0%, 19.6%)
CIE-LABlab(66.86, 20.13, -23.47)
CIE-LCHlch(66.86, 30.92, 310.62°)
OKLaboklab(72.21% 0.0494 -0.0641)
OKLCHoklch(72.21% 0.081 307.6)
XYZxyz(40.8361, 36.4482, 62.6297)
Luminance0.3645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398CD #B2CD98
analogous
#9898CD #B398CD #CD98CD
triadic
#B398CD #CDB398 #98CDB3
tetradic
#B398CD #CD9898 #B2CD98 #98CDCD
square
#B398CD #CD9898 #B2CD98 #98CDCD
split-complementary
#B398CD #CDCD98 #98CD98
monochromatic
#764D9E #956FB9 #B398CD #D1C1E1 #F0EAF5

Accessibility & contrast

On white

2.53
#B398CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B398CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398CD
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398CD#FFFFFF#000000##000000
##B398CD1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA2CF
Deuteranopia (green-blind)
#94A3CB
Tritanopia (blue-blind)
#B09FAB
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b398cd;
/* rgb */ color: rgb(179, 152, 205);
/* oklch */ color: oklch(72.2% 0.081 307.6);
Tailwind
colors: {
  custom: {
    50: '#cab6dc',
    500: '#b398cd',
    950: '#000000',
  },
}
SCSS
$custom: #b398cd;
$custom-light: #cab6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b398cd",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 270.566,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.72213,
    "c": 0.08088,
    "h": 307.6
  },
  "luminance": 0.36448
}

Semantic roles & 50–950 ramp

primary
#B398CD
secondary
#E0E8D9
accent
#AD3872
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B398CD

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

Preview Lab → · Contrast checker → · Palette generator →

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