#A797FB#A797FB

#A797FB is a light, vivid blue. Relative luminance 0.373; OKLCH L 73.1% C 0.143 H 289.7°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#A797FB
RGBrgb(167, 151, 251)
HSLhsl(250, 93%, 79%)
HSVhsv(250, 40%, 98%)
CMYKcmyk(33.5%, 39.8%, 0%, 1.6%)
CIE-LABlab(67.51, 28.03, -47.87)
CIE-LCHlch(67.51, 55.47, 300.35°)
OKLaboklab(73.09% 0.0482 -0.1342)
OKLCHoklch(73.09% 0.143 289.7)
XYZxyz(44.4110, 37.3127, 96.1103)
Luminance0.3731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797FB #EBFB97
analogous
#97B9FB #A797FB #D997FB
triadic
#A797FB #FBA797 #97FBA7
tetradic
#A797FB #FB97B9 #EBFB97 #97FBD9
square
#A797FB #FB97B9 #EBFB97 #97FBD9
split-complementary
#A797FB #FBD997 #B9FB97
monochromatic
#4321F6 #755CF9 #A797FB #D9D2FD #E6E2FE

Accessibility & contrast

On white

2.48
#A797FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#A797FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797FB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797FB#FFFFFF#000000##000000
##A797FB1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A6FF
Deuteranopia (green-blind)
#78A2F9
Tritanopia (blue-blind)
#92AABD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a797fb;
/* rgb */ color: rgb(167, 151, 251);
/* oklch */ color: oklch(73.1% 0.143 289.7);
Tailwind
colors: {
  custom: {
    50: '#c4b5fd',
    500: '#a797fb',
    950: '#000000',
  },
}
SCSS
$custom: #a797fb;
$custom-light: #c4b5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a797fb",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 249.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73094,
    "c": 0.14263,
    "h": 289.7
  },
  "luminance": 0.37314
}

Semantic roles & 50–950 ramp

primary
#A797FB
secondary
#F1F6D5
accent
#E600C1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A797FB

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

Preview Lab → · Contrast checker → · Palette generator →

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