#A797EC#A797EC

#A797EC is a light, vivid violet. Relative luminance 0.364; OKLCH L 72.4% C 0.122 H 291.7°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#A797EC
RGBrgb(167, 151, 236)
HSLhsl(251, 69%, 76%)
HSVhsv(251, 36%, 93%)
CMYKcmyk(29.2%, 36%, 0%, 7.5%)
CIE-LABlab(66.83, 24.24, -40.73)
CIE-LCHlch(66.83, 47.40, 300.76°)
OKLaboklab(72.35% 0.0452 -0.1136)
OKLCHoklch(72.35% 0.122 291.7)
XYZxyz(42.1395, 36.4041, 84.1472)
Luminance0.3640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797EC #DCEC97
analogous
#97B1EC #A797EC #D197EC
triadic
#A797EC #ECA797 #97ECA7
tetradic
#A797EC #EC97B1 #DCEC97 #97ECD1
square
#A797EC #EC97B1 #DCEC97 #97ECD1
split-complementary
#A797EC #ECD197 #B1EC97
monochromatic
#4F30D9 #7B63E3 #A797EC #D3CBF5 #E9E5FA

Accessibility & contrast

On white

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

On black

8.28
#A797EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797EC
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797EC#FFFFFF#000000##000000
##A797EC1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA4EF
Deuteranopia (green-blind)
#80A1EA
Tritanopia (blue-blind)
#97A6B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a797ec;
/* rgb */ color: rgb(167, 151, 236);
/* oklch */ color: oklch(72.4% 0.122 291.7);
Tailwind
colors: {
  custom: {
    50: '#c3b5f2',
    500: '#a797ec',
    950: '#000000',
  },
}
SCSS
$custom: #a797ec;
$custom-light: #c3b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a797ec",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 251.294,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7235,
    "c": 0.12221,
    "h": 291.7
  },
  "luminance": 0.36405
}

Semantic roles & 50–950 ramp

primary
#A797EC
secondary
#EDF2D9
accent
#D114AE
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A797EC

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

Preview Lab → · Contrast checker → · Palette generator →

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