#A797EE#A797EE

#A797EE is a light, vivid violet. Relative luminance 0.365; OKLCH L 72.4% C 0.125 H 291.4°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#A797EE
RGBrgb(167, 151, 238)
HSLhsl(251, 72%, 76%)
HSVhsv(251, 37%, 93%)
CMYKcmyk(29.8%, 36.6%, 0%, 6.7%)
CIE-LABlab(66.92, 24.74, -41.69)
CIE-LCHlch(66.92, 48.48, 300.69°)
OKLaboklab(72.45% 0.0456 -0.1163)
OKLCHoklch(72.45% 0.125 291.4)
XYZxyz(42.4317, 36.5210, 85.6860)
Luminance0.3652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797EE #DEEE97
analogous
#97B3EE #A797EE #D397EE
triadic
#A797EE #EEA797 #97EEA7
tetradic
#A797EE #EE97B3 #DEEE97 #97EED3
square
#A797EE #EE97B3 #DEEE97 #97EED3
split-complementary
#A797EE #EED397 #B3EE97
monochromatic
#4E2EDD #7A62E5 #A797EE #D4CCF7 #E9E5FB

Accessibility & contrast

On white

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

On black

8.30
#A797EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797EE
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797EE#FFFFFF#000000##000000
##A797EE1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA4F1
Deuteranopia (green-blind)
#7FA1EC
Tritanopia (blue-blind)
#97A7B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a797ee;
/* rgb */ color: rgb(167, 151, 238);
/* oklch */ color: oklch(72.4% 0.125 291.4);
Tailwind
colors: {
  custom: {
    50: '#c3b5f4',
    500: '#a797ee',
    950: '#000000',
  },
}
SCSS
$custom: #a797ee;
$custom-light: #c3b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a797ee",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 251.034,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72446,
    "c": 0.12495,
    "h": 291.4
  },
  "luminance": 0.36522
}

Semantic roles & 50–950 ramp

primary
#A797EE
secondary
#EEF2D9
accent
#D412B0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A797EE

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

Preview Lab → · Contrast checker → · Palette generator →

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