#A796EB#A796EB

#A796EB is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.1% C 0.122 H 292.2°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#A796EB
RGBrgb(167, 150, 235)
HSLhsl(252, 68%, 75%)
HSVhsv(252, 36%, 92%)
CMYKcmyk(28.9%, 36.2%, 0%, 7.8%)
CIE-LABlab(66.54, 24.56, -40.63)
CIE-LCHlch(66.54, 47.48, 301.15°)
OKLaboklab(72.11% 0.0463 -0.1133)
OKLCHoklch(72.11% 0.122 292.2)
XYZxyz(41.8344, 36.0256, 83.3307)
Luminance0.3603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796EB #DAEB96
analogous
#96AFEB #A796EB #D196EB
triadic
#A796EB #EBA796 #96EBA7
tetradic
#A796EB #EB96AF #DAEB96 #96EBD1
square
#A796EB #EB96AF #DAEB96 #96EBD1
split-complementary
#A796EB #EBD196 #AFEB96
monochromatic
#512FD7 #7C63E1 #A796EB #D2C9F5 #E9E5FA

Accessibility & contrast

On white

2.56
#A796EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#A796EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796EB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796EB#FFFFFF#000000##000000
##A796EB1.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA3EE
Deuteranopia (green-blind)
#80A0E9
Tritanopia (blue-blind)
#98A5B6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a796eb;
/* rgb */ color: rgb(167, 150, 235);
/* oklch */ color: oklch(72.1% 0.122 292.2);
Tailwind
colors: {
  custom: {
    50: '#c3b5f2',
    500: '#a796eb',
    950: '#000000',
  },
}
SCSS
$custom: #a796eb;
$custom-light: #c3b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a796eb",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 235
  },
  "hsl": {
    "h": 252,
    "s": 68,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72115,
    "c": 0.12238,
    "h": 292.2
  },
  "luminance": 0.36026
}

Semantic roles & 50–950 ramp

primary
#A796EB
secondary
#EDF2D9
accent
#D016AB
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A796EB

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

Preview Lab → · Contrast checker → · Palette generator →

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