#B397CF#B397CF

#B397CF is a light, moderate violet. Relative luminance 0.362; OKLCH L 72.1% C 0.085 H 307.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#B397CF
RGBrgb(179, 151, 207)
HSLhsl(270, 37%, 70%)
HSVhsv(270, 27%, 81%)
CMYKcmyk(13.5%, 27.1%, 0%, 18.8%)
CIE-LABlab(66.69, 21.12, -24.84)
CIE-LCHlch(66.69, 32.60, 310.37°)
OKLaboklab(72.11% 0.0515 -0.0679)
OKLCHoklch(72.11% 0.085 307.1)
XYZxyz(40.9174, 36.2222, 63.8554)
Luminance0.3622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397CF #B3CF97
analogous
#9797CF #B397CF #CF97CF
triadic
#B397CF #CFB397 #97CFB3
tetradic
#B397CF #CF9797 #B3CF97 #97CFCF
square
#B397CF #CF9797 #B3CF97 #97CFCF
split-complementary
#B397CF #CFCF97 #97CF97
monochromatic
#764AA1 #946DBC #B397CF #D2C1E2 #F0EAF5

Accessibility & contrast

On white

2.55
#B397CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#B397CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397CF
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397CF#FFFFFF#000000##000000
##B397CF1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA1D1
Deuteranopia (green-blind)
#93A3CD
Tritanopia (blue-blind)
#AF9FAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b397cf;
/* rgb */ color: rgb(179, 151, 207);
/* oklch */ color: oklch(72.1% 0.085 307.1);
Tailwind
colors: {
  custom: {
    50: '#cab5dd',
    500: '#b397cf',
    950: '#000000',
  },
}
SCSS
$custom: #b397cf;
$custom-light: #cab5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b397cf",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 270,
    "s": 36.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72106,
    "c": 0.08521,
    "h": 307.1
  },
  "luminance": 0.36222
}

Semantic roles & 50–950 ramp

primary
#B397CF
secondary
#E1E9D9
accent
#B03673
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B397CF

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

Preview Lab → · Contrast checker → · Palette generator →

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