#A796C7#A796C7

#A796C7 is a light, moderate violet. Relative luminance 0.342; OKLCH L 70.5% C 0.073 H 300.4°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#A796C7
RGBrgb(167, 150, 199)
HSLhsl(261, 30%, 68%)
HSVhsv(261, 25%, 78%)
CMYKcmyk(16.1%, 24.6%, 0%, 22%)
CIE-LABlab(65.08, 16.08, -22.94)
CIE-LCHlch(65.08, 28.01, 305.03°)
OKLaboklab(70.52% 0.0369 -0.0627)
OKLCHoklch(70.52% 0.073 300.4)
XYZxyz(37.1494, 34.1516, 58.6566)
Luminance0.3415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796C7 #B6C796
analogous
#969DC7 #A796C7 #BF96C7
triadic
#A796C7 #C7A796 #96C7A7
tetradic
#A796C7 #C7969D #B6C796 #96C7BF
square
#A796C7 #C7969D #B6C796 #96C7BF
split-complementary
#A796C7 #C7BF96 #9DC796
monochromatic
#674F94 #866EB2 #A796C7 #C8BEDC #EAE6F2

Accessibility & contrast

On white

2.68
#A796C7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#A796C7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796C7
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796C7#FFFFFF#000000##000000
##A796C71.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C9EC9
Deuteranopia (green-blind)
#8F9EC6
Tritanopia (blue-blind)
#A29DA7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a796c7;
/* rgb */ color: rgb(167, 150, 199);
/* oklch */ color: oklch(70.5% 0.073 300.4);
Tailwind
colors: {
  custom: {
    50: '#c1b5d8',
    500: '#a796c7',
    950: '#000000',
  },
}
SCSS
$custom: #a796c7;
$custom-light: #c1b5d8;
$custom-dark: #000000;
JSON
{
  "hex": "#a796c7",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 199
  },
  "hsl": {
    "h": 260.816,
    "s": 30.435,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70517,
    "c": 0.07275,
    "h": 300.4
  },
  "luminance": 0.34152
}

Semantic roles & 50–950 ramp

primary
#A796C7
secondary
#DFE4D5
accent
#A93C83
background
#FBFBFD
surface
#F7F6FA
border
#D0D0D3
text
#121114
muted
#818083

Preview Lab

Preview with #A796C7

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

Preview Lab → · Contrast checker → · Palette generator →

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