#A796FC#A796FC

#A796FC is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.0% C 0.145 H 290.0°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#A796FC
RGBrgb(167, 150, 252)
HSLhsl(250, 94%, 79%)
HSVhsv(250, 40%, 99%)
CMYKcmyk(33.7%, 40.5%, 0%, 1.2%)
CIE-LABlab(67.32, 28.85, -48.72)
CIE-LCHlch(67.32, 56.62, 300.64°)
OKLaboklab(72.96% 0.0496 -0.1367)
OKLCHoklch(72.96% 0.145 290)
XYZxyz(44.4088, 37.0554, 96.8892)
Luminance0.3706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796FC #EBFC96
analogous
#96B8FC #A796FC #DA96FC
triadic
#A796FC #FCA796 #96FCA7
tetradic
#A796FC #FC96B8 #EBFC96 #96FCDA
square
#A796FC #FC96B8 #EBFC96 #96FCDA
split-complementary
#A796FC #FCDA96 #B8FC96
monochromatic
#431FF9 #755BFA #A796FC #D9D2FE #E6E1FE

Accessibility & contrast

On white

2.50
#A796FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#A796FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796FC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796FC#FFFFFF#000000##000000
##A796FC1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A6FF
Deuteranopia (green-blind)
#76A2FA
Tritanopia (blue-blind)
#92A9BD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a796fc;
/* rgb */ color: rgb(167, 150, 252);
/* oklch */ color: oklch(73.0% 0.145 290.0);
Tailwind
colors: {
  custom: {
    50: '#c4b5fe',
    500: '#a796fc',
    950: '#000000',
  },
}
SCSS
$custom: #a796fc;
$custom-light: #c4b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#a796fc",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 250,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.72964,
    "c": 0.14545,
    "h": 290
  },
  "luminance": 0.37056
}

Semantic roles & 50–950 ramp

primary
#A796FC
secondary
#F1F6D5
accent
#E600BF
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A796FC

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

Preview Lab → · Contrast checker → · Palette generator →

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