#A797FA#A797FA

#A797FA is a light, vivid blue. Relative luminance 0.373; OKLCH L 73.0% C 0.141 H 289.9°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#A797FA
RGBrgb(167, 151, 250)
HSLhsl(250, 91%, 79%)
HSVhsv(250, 40%, 98%)
CMYKcmyk(33.2%, 39.6%, 0%, 2%)
CIE-LABlab(67.46, 27.77, -47.40)
CIE-LCHlch(67.46, 54.93, 300.37°)
OKLaboklab(73.04% 0.048 -0.1329)
OKLCHoklch(73.04% 0.141 289.9)
XYZxyz(44.2537, 37.2498, 95.2823)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797FA #EAFA97
analogous
#97B8FA #A797FA #D897FA
triadic
#A797FA #FAA797 #97FAA7
tetradic
#A797FA #FA97B8 #EAFA97 #97FAD8
square
#A797FA #FA97B8 #EAFA97 #97FAD8
split-complementary
#A797FA #FAD897 #B8FA97
monochromatic
#4422F4 #765DF7 #A797FA #D8D1FD #E6E2FE

Accessibility & contrast

On white

2.49
#A797FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#A797FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797FA
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797FA#FFFFFF#000000##000000
##A797FA1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A6FE
Deuteranopia (green-blind)
#79A2F8
Tritanopia (blue-blind)
#93A9BD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a797fa;
/* rgb */ color: rgb(167, 151, 250);
/* oklch */ color: oklch(73.0% 0.141 289.9);
Tailwind
colors: {
  custom: {
    50: '#c4b5fc',
    500: '#a797fa',
    950: '#000000',
  },
}
SCSS
$custom: #a797fa;
$custom-light: #c4b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#a797fa",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 249.697,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.73043,
    "c": 0.14128,
    "h": 289.9
  },
  "luminance": 0.37251
}

Semantic roles & 50–950 ramp

primary
#A797FA
secondary
#F0F6D5
accent
#E600C0
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A797FA

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

Preview Lab → · Contrast checker → · Palette generator →

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