#A795F9#A795F9

#A795F9 is a light, vivid violet. Relative luminance 0.365; OKLCH L 72.6% C 0.143 H 290.7°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#A795F9
RGBrgb(167, 149, 249)
HSLhsl(251, 89%, 78%)
HSVhsv(251, 40%, 98%)
CMYKcmyk(32.9%, 40.2%, 0%, 2.4%)
CIE-LABlab(66.94, 28.65, -47.68)
CIE-LCHlch(66.94, 55.63, 301.00°)
OKLaboklab(72.63% 0.0504 -0.1337)
OKLCHoklch(72.63% 0.143 290.7)
XYZxyz(43.7782, 36.5489, 94.3523)
Luminance0.3655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A795F9 #E7F995
analogous
#95B5F9 #A795F9 #D995F9
triadic
#A795F9 #F9A795 #95F9A7
tetradic
#A795F9 #F995B5 #E7F995 #95F9D9
square
#A795F9 #F995B5 #E7F995 #95F9D9
split-complementary
#A795F9 #F9D995 #B5F995
monochromatic
#4721F2 #775BF6 #A795F9 #D7CFFC #E7E2FD

Accessibility & contrast

On white

2.53
#A795F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#A795F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A795F9
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A795F9#FFFFFF#000000##000000
##A795F91.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a795f9;
/* rgb */ color: rgb(167, 149, 249);
/* oklch */ color: oklch(72.6% 0.143 290.7);
Tailwind
colors: {
  custom: {
    50: '#c4b4fb',
    500: '#a795f9',
    950: '#000000',
  },
}
SCSS
$custom: #a795f9;
$custom-light: #c4b4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a795f9",
  "rgb": {
    "r": 167,
    "g": 149,
    "b": 249
  },
  "hsl": {
    "h": 250.8,
    "s": 89.286,
    "l": 78.039
  },
  "oklch": {
    "l": 0.72627,
    "c": 0.14289,
    "h": 290.7
  },
  "luminance": 0.3655
}

Semantic roles & 50–950 ramp

primary
#A795F9
secondary
#F0F5D6
accent
#E600BC
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A795F9

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

Preview Lab → · Contrast checker → · Palette generator →

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