#A796F9#A796F9

#A796F9 is a light, vivid violet. Relative luminance 0.369; OKLCH L 72.8% C 0.141 H 290.3°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#A796F9
RGBrgb(167, 150, 249)
HSLhsl(250, 89%, 78%)
HSVhsv(250, 40%, 98%)
CMYKcmyk(32.9%, 39.8%, 0%, 2.4%)
CIE-LABlab(67.18, 28.08, -47.30)
CIE-LCHlch(67.18, 55.01, 300.70°)
OKLaboklab(72.81% 0.0491 -0.1326)
OKLCHoklch(72.81% 0.141 290.3)
XYZxyz(43.9371, 36.8667, 94.4053)
Luminance0.3687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796F9 #E8F996
analogous
#96B6F9 #A796F9 #D896F9
triadic
#A796F9 #F9A796 #96F9A7
tetradic
#A796F9 #F996B6 #E8F996 #96F9D8
square
#A796F9 #F996B6 #E8F996 #96F9D8
split-complementary
#A796F9 #F9D896 #B6F996
monochromatic
#4622F2 #765CF6 #A796F9 #D8D0FC #E7E2FD

Accessibility & contrast

On white

2.51
#A796F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#A796F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796F9
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796F9#FFFFFF#000000##000000
##A796F91.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A5FD
Deuteranopia (green-blind)
#78A1F7
Tritanopia (blue-blind)
#93A8BC
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a796f9;
/* rgb */ color: rgb(167, 150, 249);
/* oklch */ color: oklch(72.8% 0.141 290.3);
Tailwind
colors: {
  custom: {
    50: '#c4b5fb',
    500: '#a796f9',
    950: '#000000',
  },
}
SCSS
$custom: #a796f9;
$custom-light: #c4b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a796f9",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 249
  },
  "hsl": {
    "h": 250.303,
    "s": 89.189,
    "l": 78.235
  },
  "oklch": {
    "l": 0.7281,
    "c": 0.14141,
    "h": 290.3
  },
  "luminance": 0.36868
}

Semantic roles & 50–950 ramp

primary
#A796F9
secondary
#F0F5D6
accent
#E600BE
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A796F9

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

Preview Lab → · Contrast checker → · Palette generator →

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