#B797CF#B797CF

#B797CF is a light, moderate violet. Relative luminance 0.367; OKLCH L 72.5% C 0.087 H 310.2°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#B797CF
RGBrgb(183, 151, 207)
HSLhsl(274, 37%, 70%)
HSVhsv(274, 27%, 81%)
CMYKcmyk(11.6%, 27.1%, 0%, 18.8%)
CIE-LABlab(67.06, 22.40, -24.25)
CIE-LCHlch(67.06, 33.01, 312.74°)
OKLaboklab(72.47% 0.056 -0.0662)
OKLCHoklch(72.47% 0.087 310.2)
XYZxyz(41.8556, 36.7059, 63.8994)
Luminance0.3670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797CF #AFCF97
analogous
#9B97CF #B797CF #CF97CB
triadic
#B797CF #CFB797 #97CFB7
tetradic
#B797CF #CF9B97 #AFCF97 #97CBCF
square
#B797CF #CF9B97 #AFCF97 #97CBCF
split-complementary
#B797CF #CBCF97 #97CF9B
monochromatic
#7C4AA1 #9A6DBC #B797CF #D4C1E2 #F1EAF5

Accessibility & contrast

On white

2.52
#B797CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#B797CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797CF
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797CF#FFFFFF#000000##000000
##B797CF1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA2D1
Deuteranopia (green-blind)
#94A4CD
Tritanopia (blue-blind)
#B49EAB
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b797cf;
/* rgb */ color: rgb(183, 151, 207);
/* oklch */ color: oklch(72.5% 0.087 310.2);
Tailwind
colors: {
  custom: {
    50: '#cdb5dd',
    500: '#b797cf',
    950: '#000000',
  },
}
SCSS
$custom: #b797cf;
$custom-light: #cdb5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b797cf",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 274.286,
    "s": 36.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72474,
    "c": 0.08673,
    "h": 310.2
  },
  "luminance": 0.36705
}

Semantic roles & 50–950 ramp

primary
#B797CF
secondary
#E0E9D9
accent
#B0366A
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B797CF

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

Preview Lab → · Contrast checker → · Palette generator →

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