#A797CF#A797CF

#A797CF is a light, moderate violet. Relative luminance 0.349; OKLCH L 71.0% C 0.082 H 297.4°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#A797CF
RGBrgb(167, 151, 207)
HSLhsl(257, 37%, 70%)
HSVhsv(257, 27%, 81%)
CMYKcmyk(19.3%, 27.1%, 0%, 18.8%)
CIE-LABlab(65.63, 17.32, -26.55)
CIE-LCHlch(65.63, 31.70, 303.11°)
OKLaboklab(71.04% 0.0378 -0.0729)
OKLCHoklch(71.04% 0.082 297.4)
XYZxyz(38.2630, 34.8535, 63.7310)
Luminance0.3485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797CF #BFCF97
analogous
#97A3CF #A797CF #C397CF
triadic
#A797CF #CFA797 #97CFA7
tetradic
#A797CF #CF97A3 #BFCF97 #97CFC3
square
#A797CF #CF97A3 #BFCF97 #97CFC3
split-complementary
#A797CF #CFC397 #A3CF97
monochromatic
#634AA1 #846DBC #A797CF #CAC1E2 #EDEAF5

Accessibility & contrast

On white

2.63
#A797CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#A797CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797CF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797CF#FFFFFF#000000##000000
##A797CF1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA0D1
Deuteranopia (green-blind)
#8D9FCD
Tritanopia (blue-blind)
#A0A0AB
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a797cf;
/* rgb */ color: rgb(167, 151, 207);
/* oklch */ color: oklch(71.0% 0.082 297.4);
Tailwind
colors: {
  custom: {
    50: '#c2b5dd',
    500: '#a797cf',
    950: '#000000',
  },
}
SCSS
$custom: #a797cf;
$custom-light: #c2b5dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a797cf",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 257.143,
    "s": 36.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71041,
    "c": 0.08215,
    "h": 297.4
  },
  "luminance": 0.34854
}

Semantic roles & 50–950 ramp

primary
#A797CF
secondary
#E4E9D9
accent
#B0368D
background
#FBFBFD
surface
#F7F6FB
border
#D0D0D4
text
#121115
muted
#818083

Preview Lab

Preview with #A797CF

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

Preview Lab → · Contrast checker → · Palette generator →

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