#A797FF#A797FF

#A797FF is a light, vivid blue. Relative luminance 0.376; OKLCH L 73.3% C 0.148 H 289.3°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#A797FF
RGBrgb(167, 151, 255)
HSLhsl(249, 100%, 80%)
HSVhsv(249, 41%, 100%)
CMYKcmyk(34.5%, 40.8%, 0%, 0%)
CIE-LABlab(67.70, 29.06, -49.75)
CIE-LCHlch(67.70, 57.61, 300.29°)
OKLaboklab(73.3% 0.0489 -0.1397)
OKLCHoklch(73.3% 0.148 289.3)
XYZxyz(45.0481, 37.5675, 99.4662)
Luminance0.3757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797FF #EFFF97
analogous
#97BBFF #A797FF #DB97FF
triadic
#A797FF #FFA797 #97FFA7
tetradic
#A797FF #FF97BB #EFFF97 #97FFDB
square
#A797FF #FF97BB #EFFF97 #97FFDB
split-complementary
#A797FF #FFDB97 #BBFF97
monochromatic
#3F1DFF #735AFF #A797FF #DBD4FF #E5E0FF

Accessibility & contrast

On white

2.47
#A797FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#A797FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797FF
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797FF#FFFFFF#000000##000000
##A797FF1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A7FF
Deuteranopia (green-blind)
#76A2FC
Tritanopia (blue-blind)
#91ABBF
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a797ff;
/* rgb */ color: rgb(167, 151, 255);
/* oklch */ color: oklch(73.3% 0.148 289.3);
Tailwind
colors: {
  custom: {
    50: '#c4b5ff',
    500: '#a797ff',
    950: '#000000',
  },
}
SCSS
$custom: #a797ff;
$custom-light: #c4b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a797ff",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 249.231,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.73301,
    "c": 0.14802,
    "h": 289.3
  },
  "luminance": 0.37569
}

Semantic roles & 50–950 ramp

primary
#A797FF
secondary
#F2F7D4
accent
#E600C2
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A797FF

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

Preview Lab → · Contrast checker → · Palette generator →

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