#A797FD#A797FD

#A797FD is a light, vivid blue. Relative luminance 0.374; OKLCH L 73.2% C 0.145 H 289.5°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#A797FD
RGBrgb(167, 151, 253)
HSLhsl(249, 96%, 79%)
HSVhsv(249, 40%, 99%)
CMYKcmyk(34%, 40.3%, 0%, 0.8%)
CIE-LABlab(67.61, 28.54, -48.81)
CIE-LCHlch(67.61, 56.54, 300.32°)
OKLaboklab(73.2% 0.0485 -0.137)
OKLCHoklch(73.2% 0.145 289.5)
XYZxyz(44.7279, 37.4394, 97.7794)
Luminance0.3744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797FD #EDFD97
analogous
#97BAFD #A797FD #DA97FD
triadic
#A797FD #FDA797 #97FDA7
tetradic
#A797FD #FD97BA #EDFD97 #97FDDA
square
#A797FD #FD97BA #EDFD97 #97FDDA
split-complementary
#A797FD #FDDA97 #BAFD97
monochromatic
#411FFB #745BFC #A797FD #DAD3FE #E6E1FE

Accessibility & contrast

On white

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

On black

8.49
#A797FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797FD
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797FD#FFFFFF#000000##000000
##A797FD1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#77A2FB
Tritanopia (blue-blind)
#92AABE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a797fd;
/* rgb */ color: rgb(167, 151, 253);
/* oklch */ color: oklch(73.2% 0.145 289.5);
Tailwind
colors: {
  custom: {
    50: '#c4b5fe',
    500: '#a797fd',
    950: '#000000',
  },
}
SCSS
$custom: #a797fd;
$custom-light: #c4b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#a797fd",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 249.412,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73197,
    "c": 0.14533,
    "h": 289.5
  },
  "luminance": 0.37441
}

Semantic roles & 50–950 ramp

primary
#A797FD
secondary
#F1F7D4
accent
#E600C1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A797FD

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

Preview Lab → · Contrast checker → · Palette generator →

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