#A798EA#A798EA

#A798EA is a light, moderate violet. Relative luminance 0.366; OKLCH L 72.4% C 0.118 H 291.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#A798EA
RGBrgb(167, 152, 234)
HSLhsl(251, 66%, 76%)
HSVhsv(251, 35%, 92%)
CMYKcmyk(28.6%, 35%, 0%, 8.2%)
CIE-LABlab(66.98, 23.18, -39.39)
CIE-LCHlch(66.98, 45.70, 300.48°)
OKLaboklab(72.44% 0.0434 -0.1097)
OKLCHoklch(72.44% 0.118 291.6)
XYZxyz(42.0122, 36.6117, 82.6793)
Luminance0.3661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798EA #DBEA98
analogous
#98B2EA #A798EA #D098EA
triadic
#A798EA #EAA798 #98EAA7
tetradic
#A798EA #EA98B2 #DBEA98 #98EAD0
square
#A798EA #EA98B2 #DBEA98 #98EAD0
split-complementary
#A798EA #EAD098 #B2EA98
monochromatic
#5032D5 #7C65E0 #A798EA #D2CBF4 #E9E6FA

Accessibility & contrast

On white

2.52
#A798EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#A798EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798EA
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798EA#FFFFFF#000000##000000
##A798EA1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A4ED
Deuteranopia (green-blind)
#82A1E8
Tritanopia (blue-blind)
#98A6B6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a798ea;
/* rgb */ color: rgb(167, 152, 234);
/* oklch */ color: oklch(72.4% 0.118 291.6);
Tailwind
colors: {
  custom: {
    50: '#c3b6f1',
    500: '#a798ea',
    950: '#000000',
  },
}
SCSS
$custom: #a798ea;
$custom-light: #c3b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ea",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 250.976,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72441,
    "c": 0.11794,
    "h": 291.6
  },
  "luminance": 0.36612
}

Semantic roles & 50–950 ramp

primary
#A798EA
secondary
#EDF1DA
accent
#CE18AD
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #A798EA

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

Preview Lab → · Contrast checker → · Palette generator →

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