#A798DC#A798DC

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

Color values

HEX#A798DC
RGBrgb(167, 152, 220)
HSLhsl(253, 49%, 73%)
HSVhsv(253, 31%, 86%)
CMYKcmyk(24.1%, 30.9%, 0%, 13.7%)
CIE-LABlab(66.40, 19.79, -32.58)
CIE-LCHlch(66.40, 38.12, 301.27°)
OKLaboklab(71.8% 0.0399 -0.0901)
OKLCHoklch(71.8% 0.099 293.9)
XYZxyz(40.0798, 35.8388, 72.5023)
Luminance0.3584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798DC #CDDC98
analogous
#98ABDC #A798DC #C998DC
triadic
#A798DC #DCA798 #98DCA7
tetradic
#A798DC #DC98AB #CDDC98 #98DCC9
square
#A798DC #DC98AB #CDDC98 #98DCC9
split-complementary
#A798DC #DCC998 #ABDC98
monochromatic
#5A3FBA #806ACC #A798DC #CEC6EC #EBE8F7

Accessibility & contrast

On white

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

On black

8.17
#A798DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798DC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798DC#FFFFFF#000000##000000
##A798DC1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a798dc;
/* rgb */ color: rgb(167, 152, 220);
/* oklch */ color: oklch(71.8% 0.099 293.9);
Tailwind
colors: {
  custom: {
    50: '#c2b6e7',
    500: '#a798dc',
    950: '#000000',
  },
}
SCSS
$custom: #a798dc;
$custom-light: #c2b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a798dc",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 253.235,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71797,
    "c": 0.09859,
    "h": 293.9
  },
  "luminance": 0.35839
}

Semantic roles & 50–950 ramp

primary
#A798DC
secondary
#EAEEDD
accent
#BD299C
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798DC

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

Preview Lab → · Contrast checker → · Palette generator →

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