#A798E5#A798E5

#A798E5 is a light, moderate violet. Relative luminance 0.363; OKLCH L 72.2% C 0.111 H 292.3°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#A798E5
RGBrgb(167, 152, 229)
HSLhsl(252, 60%, 75%)
HSVhsv(252, 34%, 90%)
CMYKcmyk(27.1%, 33.6%, 0%, 10.2%)
CIE-LABlab(66.77, 21.95, -36.97)
CIE-LCHlch(66.77, 43.00, 300.70°)
OKLaboklab(72.21% 0.0422 -0.1027)
OKLCHoklch(72.21% 0.111 292.3)
XYZxyz(41.3040, 36.3285, 78.9495)
Luminance0.3633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798E5 #D6E598
analogous
#98B0E5 #A798E5 #CD98E5
triadic
#A798E5 #E5A798 #98E5A7
tetradic
#A798E5 #E598B0 #D6E598 #98E5CD
square
#A798E5 #E598B0 #D6E598 #98E5CD
split-complementary
#A798E5 #E5CD98 #B0E598
monochromatic
#5436CC #7D67D9 #A798E5 #D1C9F1 #EAE7F9

Accessibility & contrast

On white

2.54
#A798E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#A798E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798E5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798E5#FFFFFF#000000##000000
##A798E51.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A4E8
Deuteranopia (green-blind)
#85A1E3
Tritanopia (blue-blind)
#9AA5B4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a798e5;
/* rgb */ color: rgb(167, 152, 229);
/* oklch */ color: oklch(72.2% 0.111 292.3);
Tailwind
colors: {
  custom: {
    50: '#c2b6ed',
    500: '#a798e5',
    950: '#000000',
  },
}
SCSS
$custom: #a798e5;
$custom-light: #c2b6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a798e5",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 229
  },
  "hsl": {
    "h": 251.688,
    "s": 59.69,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72206,
    "c": 0.11105,
    "h": 292.3
  },
  "luminance": 0.36329
}

Semantic roles & 50–950 ramp

primary
#A798E5
secondary
#ECF0DB
accent
#C71EA6
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798E5

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

Preview Lab → · Contrast checker → · Palette generator →

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