#A798DB#A798DB

#A798DB is a light, moderate violet. Relative luminance 0.358; OKLCH L 71.8% C 0.097 H 294.1°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#A798DB
RGBrgb(167, 152, 219)
HSLhsl(253, 48%, 73%)
HSVhsv(253, 31%, 86%)
CMYKcmyk(23.7%, 30.6%, 0%, 14.1%)
CIE-LABlab(66.36, 19.55, -32.09)
CIE-LCHlch(66.36, 37.58, 301.35°)
OKLaboklab(71.75% 0.0397 -0.0887)
OKLCHoklch(71.75% 0.097 294.1)
XYZxyz(39.9478, 35.7860, 71.8069)
Luminance0.3579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798DB #CCDB98
analogous
#98AADB #A798DB #C898DB
triadic
#A798DB #DBA798 #98DBA7
tetradic
#A798DB #DB98AA #CCDB98 #98DBC8
square
#A798DB #DB98AA #CCDB98 #98DBC8
split-complementary
#A798DB #DBC898 #AADB98
monochromatic
#5B40B8 #806BCB #A798DB #CEC5EB #ECE8F7

Accessibility & contrast

On white

2.57
#A798DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#A798DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798DB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798DB#FFFFFF#000000##000000
##A798DB1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A2DE
Deuteranopia (green-blind)
#89A0D9
Tritanopia (blue-blind)
#9CA3B0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a798db;
/* rgb */ color: rgb(167, 152, 219);
/* oklch */ color: oklch(71.8% 0.097 294.1);
Tailwind
colors: {
  custom: {
    50: '#c2b6e6',
    500: '#a798db',
    950: '#000000',
  },
}
SCSS
$custom: #a798db;
$custom-light: #c2b6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a798db",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 253.433,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71752,
    "c": 0.0972,
    "h": 294.1
  },
  "luminance": 0.35786
}

Semantic roles & 50–950 ramp

primary
#A798DB
secondary
#EAEEDD
accent
#BB2A9B
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798DB

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

Preview Lab → · Contrast checker → · Palette generator →

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