#A796EF#A796EF

#A796EF is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.3% C 0.128 H 291.6°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#A796EF
RGBrgb(167, 150, 239)
HSLhsl(251, 74%, 76%)
HSVhsv(251, 37%, 94%)
CMYKcmyk(30.1%, 37.2%, 0%, 6.3%)
CIE-LABlab(66.72, 25.56, -42.55)
CIE-LCHlch(66.72, 49.64, 300.99°)
OKLaboklab(72.31% 0.0472 -0.1188)
OKLCHoklch(72.31% 0.128 291.6)
XYZxyz(42.4187, 36.2594, 86.4085)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796EF #DEEF96
analogous
#96B2EF #A796EF #D496EF
triadic
#A796EF #EFA796 #96EFA7
tetradic
#A796EF #EF96B2 #DEEF96 #96EFD4
square
#A796EF #EF96B2 #DEEF96 #96EFD4
split-complementary
#A796EF #EFD496 #B2EF96
monochromatic
#4E2CDF #7A61E7 #A796EF #D4CBF7 #E9E4FB

Accessibility & contrast

On white

2.54
#A796EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#A796EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796EF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796EF#FFFFFF#000000##000000
##A796EF1.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA4F2
Deuteranopia (green-blind)
#7EA1ED
Tritanopia (blue-blind)
#97A6B7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a796ef;
/* rgb */ color: rgb(167, 150, 239);
/* oklch */ color: oklch(72.3% 0.128 291.6);
Tailwind
colors: {
  custom: {
    50: '#c3b5f4',
    500: '#a796ef',
    950: '#000000',
  },
}
SCSS
$custom: #a796ef;
$custom-light: #c3b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a796ef",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 251.461,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72309,
    "c": 0.12783,
    "h": 291.6
  },
  "luminance": 0.3626
}

Semantic roles & 50–950 ramp

primary
#A796EF
secondary
#EEF3D8
accent
#D610B0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A796EF

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

Preview Lab → · Contrast checker → · Palette generator →

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