#A797FC#A797FC

#A797FC is a light, vivid blue. Relative luminance 0.374; OKLCH L 73.1% C 0.144 H 289.6°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#A797FC
RGBrgb(167, 151, 252)
HSLhsl(250, 94%, 79%)
HSVhsv(250, 40%, 99%)
CMYKcmyk(33.7%, 40.1%, 0%, 1.2%)
CIE-LABlab(67.56, 28.29, -48.34)
CIE-LCHlch(67.56, 56.01, 300.33°)
OKLaboklab(73.15% 0.0483 -0.1356)
OKLCHoklch(73.15% 0.144 289.6)
XYZxyz(44.5690, 37.3759, 96.9426)
Luminance0.3738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797FC #ECFC97
analogous
#97BAFC #A797FC #DA97FC
triadic
#A797FC #FCA797 #97FCA7
tetradic
#A797FC #FC97BA #ECFC97 #97FCDA
square
#A797FC #FC97BA #ECFC97 #97FCDA
split-complementary
#A797FC #FCDA97 #BAFC97
monochromatic
#4220F9 #755CFA #A797FC #D9D2FE #E6E1FE

Accessibility & contrast

On white

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

On black

8.48
#A797FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797FC
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797FC#FFFFFF#000000##000000
##A797FC1.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#78A2FA
Tritanopia (blue-blind)
#92AABD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a797fc;
/* rgb */ color: rgb(167, 151, 252);
/* oklch */ color: oklch(73.1% 0.144 289.6);
Tailwind
colors: {
  custom: {
    50: '#c4b5fe',
    500: '#a797fc',
    950: '#000000',
  },
}
SCSS
$custom: #a797fc;
$custom-light: #c4b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#a797fc",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 249.505,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.73146,
    "c": 0.14398,
    "h": 289.6
  },
  "luminance": 0.37377
}

Semantic roles & 50–950 ramp

primary
#A797FC
secondary
#F1F6D5
accent
#E600C1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A797FC

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

Preview Lab → · Contrast checker → · Palette generator →

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