#A798CA#A798CA

#A798CA is a light, moderate violet. Relative luminance 0.349; OKLCH L 71.0% C 0.074 H 298.3°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#A798CA
RGBrgb(167, 152, 202)
HSLhsl(258, 32%, 69%)
HSVhsv(258, 25%, 79%)
CMYKcmyk(17.3%, 24.8%, 0%, 20.8%)
CIE-LABlab(65.70, 15.62, -23.67)
CIE-LCHlch(65.70, 28.36, 303.42°)
OKLaboklab(71.03% 0.0348 -0.0648)
OKLCHoklch(71.03% 0.074 298.3)
XYZxyz(37.8230, 34.9361, 60.6164)
Luminance0.3494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798CA #BBCA98
analogous
#98A2CA #A798CA #C098CA
triadic
#A798CA #CAA798 #98CAA7
tetradic
#A798CA #CA98A2 #BBCA98 #98CAC0
square
#A798CA #CA98A2 #BBCA98 #98CAC0
split-complementary
#A798CA #CAC098 #A2CA98
monochromatic
#654F99 #8470B5 #A798CA #CAC0DF #ECE9F4

Accessibility & contrast

On white

2.63
#A798CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#A798CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798CA
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798CA#FFFFFF#000000##000000
##A798CA1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA0CC
Deuteranopia (green-blind)
#909FC9
Tritanopia (blue-blind)
#A1A0A9
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a798ca;
/* rgb */ color: rgb(167, 152, 202);
/* oklch */ color: oklch(71.0% 0.074 298.3);
Tailwind
colors: {
  custom: {
    50: '#c1b6da',
    500: '#a798ca',
    950: '#000000',
  },
}
SCSS
$custom: #a798ca;
$custom-light: #c1b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ca",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 202
  },
  "hsl": {
    "h": 258,
    "s": 32.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71029,
    "c": 0.07357,
    "h": 298.3
  },
  "luminance": 0.34936
}

Semantic roles & 50–950 ramp

primary
#A798CA
secondary
#E2E6D8
accent
#AB3B89
background
#FBFBFD
surface
#F7F6FA
border
#D0D0D3
text
#121114
muted
#818083

Preview Lab

Preview with #A798CA

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

Preview Lab → · Contrast checker → · Palette generator →

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