#A798E8#A798E8

#A798E8 is a light, moderate violet. Relative luminance 0.365; OKLCH L 72.3% C 0.115 H 291.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#A798E8
RGBrgb(167, 152, 232)
HSLhsl(251, 63%, 75%)
HSVhsv(251, 34%, 91%)
CMYKcmyk(28%, 34.5%, 0%, 9%)
CIE-LABlab(66.90, 22.69, -38.42)
CIE-LCHlch(66.90, 44.62, 300.56°)
OKLaboklab(72.35% 0.0429 -0.1069)
OKLCHoklch(72.35% 0.115 291.9)
XYZxyz(41.7265, 36.4975, 81.1746)
Luminance0.3650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798E8 #D9E898
analogous
#98B1E8 #A798E8 #CF98E8
triadic
#A798E8 #E8A798 #98E8A7
tetradic
#A798E8 #E898B1 #D9E898 #98E8CF
square
#A798E8 #E898B1 #D9E898 #98E8CF
split-complementary
#A798E8 #E8CF98 #B1E898
monochromatic
#5234D2 #7C66DD #A798E8 #D2CAF3 #EAE6F9

Accessibility & contrast

On white

2.53
#A798E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#A798E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798E8
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798E8#FFFFFF#000000##000000
##A798E81.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A4EB
Deuteranopia (green-blind)
#83A1E6
Tritanopia (blue-blind)
#99A6B5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a798e8;
/* rgb */ color: rgb(167, 152, 232);
/* oklch */ color: oklch(72.3% 0.115 291.9);
Tailwind
colors: {
  custom: {
    50: '#c3b6ef',
    500: '#a798e8',
    950: '#000000',
  },
}
SCSS
$custom: #a798e8;
$custom-light: #c3b6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a798e8",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 232
  },
  "hsl": {
    "h": 251.25,
    "s": 63.492,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72346,
    "c": 0.11518,
    "h": 291.9
  },
  "luminance": 0.36498
}

Semantic roles & 50–950 ramp

primary
#A798E8
secondary
#EDF1DA
accent
#CB1AAA
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #A798E8

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

Preview Lab → · Contrast checker → · Palette generator →

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