#A798DA#A798DA

#A798DA is a light, moderate violet. Relative luminance 0.357; OKLCH L 71.7% C 0.096 H 294.3°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#A798DA
RGBrgb(167, 152, 218)
HSLhsl(254, 47%, 73%)
HSVhsv(254, 30%, 85%)
CMYKcmyk(23.4%, 30.3%, 0%, 14.5%)
CIE-LABlab(66.32, 19.31, -31.60)
CIE-LCHlch(66.32, 37.04, 301.43°)
OKLaboklab(71.71% 0.0394 -0.0873)
OKLCHoklch(71.71% 0.096 294.3)
XYZxyz(39.8165, 35.7335, 71.1156)
Luminance0.3573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798DA #CBDA98
analogous
#98AADA #A798DA #C898DA
triadic
#A798DA #DAA798 #98DAA7
tetradic
#A798DA #DA98AA #CBDA98 #98DAC8
square
#A798DA #DA98AA #CBDA98 #98DAC8
split-complementary
#A798DA #DAC898 #AADA98
monochromatic
#5C41B6 #816BCA #A798DA #CDC5EA #ECE8F7

Accessibility & contrast

On white

2.58
#A798DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#A798DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798DA
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798DA#FFFFFF#000000##000000
##A798DA1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A2DD
Deuteranopia (green-blind)
#8AA0D8
Tritanopia (blue-blind)
#9DA3B0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a798da;
/* rgb */ color: rgb(167, 152, 218);
/* oklch */ color: oklch(71.7% 0.096 294.3);
Tailwind
colors: {
  custom: {
    50: '#c2b6e5',
    500: '#a798da',
    950: '#000000',
  },
}
SCSS
$custom: #a798da;
$custom-light: #c2b6e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a798da",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 218
  },
  "hsl": {
    "h": 253.636,
    "s": 47.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71708,
    "c": 0.09581,
    "h": 294.3
  },
  "luminance": 0.35734
}

Semantic roles & 50–950 ramp

primary
#A798DA
secondary
#EAEEDD
accent
#BA2B9A
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798DA

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

Preview Lab → · Contrast checker → · Palette generator →

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