#A798EE#A798EE

#A798EE is a light, vivid violet. Relative luminance 0.368; OKLCH L 72.6% C 0.123 H 291.0°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#A798EE
RGBrgb(167, 152, 238)
HSLhsl(250, 72%, 76%)
HSVhsv(250, 36%, 93%)
CMYKcmyk(29.8%, 36.1%, 0%, 6.7%)
CIE-LABlab(67.16, 24.17, -41.31)
CIE-LCHlch(67.16, 47.86, 300.34°)
OKLaboklab(72.63% 0.0442 -0.1152)
OKLCHoklch(72.63% 0.123 291)
XYZxyz(42.5933, 36.8442, 85.7399)
Luminance0.3684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798EE #DFEE98
analogous
#98B4EE #A798EE #D298EE
triadic
#A798EE #EEA798 #98EEA7
tetradic
#A798EE #EE98B4 #DFEE98 #98EED2
square
#A798EE #EE98B4 #DFEE98 #98EED2
split-complementary
#A798EE #EED298 #B4EE98
monochromatic
#4D2FDD #7A63E5 #A798EE #D4CDF7 #E9E5FB

Accessibility & contrast

On white

2.51
#A798EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#A798EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798EE
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798EE#FFFFFF#000000##000000
##A798EE1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F1
Deuteranopia (green-blind)
#80A2EC
Tritanopia (blue-blind)
#97A7B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a798ee;
/* rgb */ color: rgb(167, 152, 238);
/* oklch */ color: oklch(72.6% 0.123 291.0);
Tailwind
colors: {
  custom: {
    50: '#c3b6f4',
    500: '#a798ee',
    950: '#000000',
  },
}
SCSS
$custom: #a798ee;
$custom-light: #c3b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ee",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 250.465,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72633,
    "c": 0.12343,
    "h": 291
  },
  "luminance": 0.36845
}

Semantic roles & 50–950 ramp

primary
#A798EE
secondary
#EEF2D9
accent
#D412B2
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A798EE

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

Preview Lab → · Contrast checker → · Palette generator →

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