#A798EF#A798EF

#A798EF is a light, vivid violet. Relative luminance 0.369; OKLCH L 72.7% C 0.125 H 290.9°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#A798EF
RGBrgb(167, 152, 239)
HSLhsl(250, 73%, 77%)
HSVhsv(250, 36%, 94%)
CMYKcmyk(30.1%, 36.4%, 0%, 6.3%)
CIE-LABlab(67.20, 24.42, -41.79)
CIE-LCHlch(67.20, 48.40, 300.31°)
OKLaboklab(72.68% 0.0445 -0.1166)
OKLCHoklch(72.68% 0.125 290.9)
XYZxyz(42.7406, 36.9031, 86.5158)
Luminance0.3690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798EF #E0EF98
analogous
#98B5EF #A798EF #D398EF
triadic
#A798EF #EFA798 #98EFA7
tetradic
#A798EF #EF98B5 #E0EF98 #98EFD3
square
#A798EF #EF98B5 #E0EF98 #98EFD3
split-complementary
#A798EF #EFD398 #B5EF98
monochromatic
#4C2EDF #7A63E7 #A798EF #D4CDF7 #E8E5FB

Accessibility & contrast

On white

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

On black

8.38
#A798EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798EF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798EF#FFFFFF#000000##000000
##A798EF1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA5F2
Deuteranopia (green-blind)
#80A2ED
Tritanopia (blue-blind)
#96A8B8
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a798ef;
/* rgb */ color: rgb(167, 152, 239);
/* oklch */ color: oklch(72.7% 0.125 290.9);
Tailwind
colors: {
  custom: {
    50: '#c3b6f4',
    500: '#a798ef',
    950: '#000000',
  },
}
SCSS
$custom: #a798ef;
$custom-light: #c3b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ef",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 250.345,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72681,
    "c": 0.12481,
    "h": 290.9
  },
  "luminance": 0.36904
}

Semantic roles & 50–950 ramp

primary
#A798EF
secondary
#EEF3D8
accent
#D510B3
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A798EF

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

Preview Lab → · Contrast checker → · Palette generator →

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