#A798E2#A798E2

#A798E2 is a light, moderate violet. Relative luminance 0.362; OKLCH L 72.1% C 0.107 H 292.8°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#A798E2
RGBrgb(167, 152, 226)
HSLhsl(252, 56%, 74%)
HSVhsv(252, 33%, 89%)
CMYKcmyk(26.1%, 32.7%, 0%, 11.4%)
CIE-LABlab(66.64, 21.23, -35.51)
CIE-LCHlch(66.64, 41.37, 300.87°)
OKLaboklab(72.07% 0.0415 -0.0985)
OKLCHoklch(72.07% 0.107 292.8)
XYZxyz(40.8887, 36.1624, 76.7626)
Luminance0.3616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798E2 #D3E298
analogous
#98AEE2 #A798E2 #CC98E2
triadic
#A798E2 #E2A798 #98E2A7
tetradic
#A798E2 #E298AE #D3E298 #98E2CC
square
#A798E2 #E298AE #D3E298 #98E2CC
split-complementary
#A798E2 #E2CC98 #AEE298
monochromatic
#5538C7 #7E68D5 #A798E2 #D0C8EF #EBE7F8

Accessibility & contrast

On white

2.55
#A798E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#A798E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798E2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798E2#FFFFFF#000000##000000
##A798E21.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A3E5
Deuteranopia (green-blind)
#86A1E0
Tritanopia (blue-blind)
#9AA5B3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a798e2;
/* rgb */ color: rgb(167, 152, 226);
/* oklch */ color: oklch(72.1% 0.107 292.8);
Tailwind
colors: {
  custom: {
    50: '#c2b6eb',
    500: '#a798e2',
    950: '#000000',
  },
}
SCSS
$custom: #a798e2;
$custom-light: #c2b6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#a798e2",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 226
  },
  "hsl": {
    "h": 252.162,
    "s": 56.061,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72068,
    "c": 0.10691,
    "h": 292.8
  },
  "luminance": 0.36163
}

Semantic roles & 50–950 ramp

primary
#A798E2
secondary
#EBF0DB
accent
#C422A3
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798E2

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

Preview Lab → · Contrast checker → · Palette generator →

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