#A797F0#A797F0

#A797F0 is a light, vivid violet. Relative luminance 0.366; OKLCH L 72.5% C 0.128 H 291.1°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#A797F0
RGBrgb(167, 151, 240)
HSLhsl(251, 75%, 77%)
HSVhsv(251, 37%, 94%)
CMYKcmyk(30.4%, 37.1%, 0%, 5.9%)
CIE-LABlab(67.01, 25.24, -42.65)
CIE-LCHlch(67.01, 49.56, 300.62°)
OKLaboklab(72.54% 0.046 -0.1191)
OKLCHoklch(72.54% 0.128 291.1)
XYZxyz(42.7271, 36.6391, 87.2421)
Luminance0.3664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A797F0 #E0F097
analogous
#97B4F0 #A797F0 #D497F0
triadic
#A797F0 #F0A797 #97F0A7
tetradic
#A797F0 #F097B4 #E0F097 #97F0D4
square
#A797F0 #F097B4 #E0F097 #97F0D4
split-complementary
#A797F0 #F0D497 #B4F097
monochromatic
#4C2CE1 #7A62E8 #A797F0 #D4CCF8 #E8E4FB

Accessibility & contrast

On white

2.52
#A797F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#A797F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A797F0
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A797F0#FFFFFF#000000##000000
##A797F01.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA5F3
Deuteranopia (green-blind)
#7EA1EE
Tritanopia (blue-blind)
#96A7B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a797f0;
/* rgb */ color: rgb(167, 151, 240);
/* oklch */ color: oklch(72.5% 0.128 291.1);
Tailwind
colors: {
  custom: {
    50: '#c3b5f5',
    500: '#a797f0',
    950: '#000000',
  },
}
SCSS
$custom: #a797f0;
$custom-light: #c3b5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a797f0",
  "rgb": {
    "r": 167,
    "g": 151,
    "b": 240
  },
  "hsl": {
    "h": 250.787,
    "s": 74.79,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72544,
    "c": 0.12768,
    "h": 291.1
  },
  "luminance": 0.3664
}

Semantic roles & 50–950 ramp

primary
#A797F0
secondary
#EEF3D8
accent
#D70FB3
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #A797F0

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

Preview Lab → · Contrast checker → · Palette generator →

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