#A797EF#A797EF

#A797EF is a light, vivid violet. Relative luminance 0.366; OKLCH L 72.5% C 0.126 H 291.3°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#A797EF
RGBrgb(167, 151, 239)
HSLhsl(251, 73%, 76%)
HSVhsv(251, 37%, 94%)
CMYKcmyk(30.1%, 36.8%, 0%, 6.3%)
CIE-LABlab(66.96, 24.99, -42.17)
CIE-LCHlch(66.96, 49.02, 300.65°)
OKLaboklab(72.5% 0.0458 -0.1177)
OKLCHoklch(72.5% 0.126 291.3)
XYZxyz(42.5790, 36.5799, 86.4619)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797EF #DFEF97
analogous
#97B3EF #A797EF #D397EF
triadic
#A797EF #EFA797 #97EFA7
tetradic
#A797EF #EF97B3 #DFEF97 #97EFD3
square
#A797EF #EF97B3 #DFEF97 #97EFD3
split-complementary
#A797EF #EFD397 #B3EF97
monochromatic
#4D2DDF #7A62E7 #A797EF #D4CCF7 #E9E4FB

Accessibility & contrast

On white

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

On black

8.32
#A797EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797EF
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797EF#FFFFFF#000000##000000
##A797EF1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA4F2
Deuteranopia (green-blind)
#7FA1ED
Tritanopia (blue-blind)
#96A7B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a797ef;
/* rgb */ color: rgb(167, 151, 239);
/* oklch */ color: oklch(72.5% 0.126 291.3);
Tailwind
colors: {
  custom: {
    50: '#c3b5f4',
    500: '#a797ef',
    950: '#000000',
  },
}
SCSS
$custom: #a797ef;
$custom-light: #c3b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a797ef",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 250.909,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72495,
    "c": 0.12632,
    "h": 291.3
  },
  "luminance": 0.36581
}

Semantic roles & 50–950 ramp

primary
#A797EF
secondary
#EEF3D8
accent
#D510B2
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A797EF

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

Preview Lab → · Contrast checker → · Palette generator →

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