#A797EB#A797EB

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

Color values

HEX#A797EB
RGBrgb(167, 151, 235)
HSLhsl(251, 68%, 76%)
HSVhsv(251, 36%, 92%)
CMYKcmyk(28.9%, 35.7%, 0%, 7.8%)
CIE-LABlab(66.78, 24.00, -40.25)
CIE-LCHlch(66.78, 46.86, 300.80°)
OKLaboklab(72.3% 0.0449 -0.1122)
OKLCHoklch(72.3% 0.121 291.8)
XYZxyz(41.9946, 36.3461, 83.3841)
Luminance0.3635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797EB #DBEB97
analogous
#97B1EB #A797EB #D197EB
triadic
#A797EB #EBA797 #97EBA7
tetradic
#A797EB #EB97B1 #DBEB97 #97EBD1
square
#A797EB #EB97B1 #DBEB97 #97EBD1
split-complementary
#A797EB #EBD197 #B1EB97
monochromatic
#5030D7 #7C64E1 #A797EB #D2CAF5 #E9E5FA

Accessibility & contrast

On white

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

On black

8.27
#A797EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797EB
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797EB#FFFFFF#000000##000000
##A797EB1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A4EE
Deuteranopia (green-blind)
#81A1E9
Tritanopia (blue-blind)
#98A6B6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a797eb;
/* rgb */ color: rgb(167, 151, 235);
/* oklch */ color: oklch(72.3% 0.121 291.8);
Tailwind
colors: {
  custom: {
    50: '#c3b5f1',
    500: '#a797eb',
    950: '#000000',
  },
}
SCSS
$custom: #a797eb;
$custom-light: #c3b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a797eb",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 251.429,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72302,
    "c": 0.12085,
    "h": 291.8
  },
  "luminance": 0.36347
}

Semantic roles & 50–950 ramp

primary
#A797EB
secondary
#EDF2D9
accent
#D016AC
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A797EB

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

Preview Lab → · Contrast checker → · Palette generator →

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