#A798E4#A798E4

#A798E4 is a light, moderate violet. Relative luminance 0.363; OKLCH L 72.2% C 0.110 H 292.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#A798E4
RGBrgb(167, 152, 228)
HSLhsl(252, 58%, 75%)
HSVhsv(252, 33%, 89%)
CMYKcmyk(26.8%, 33.3%, 0%, 10.6%)
CIE-LABlab(66.73, 21.71, -36.49)
CIE-LCHlch(66.73, 42.46, 300.76°)
OKLaboklab(72.16% 0.042 -0.1013)
OKLCHoklch(72.16% 0.11 292.5)
XYZxyz(41.1648, 36.2728, 78.2163)
Luminance0.3627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798E4 #D5E498
analogous
#98AFE4 #A798E4 #CD98E4
triadic
#A798E4 #E4A798 #98E4A7
tetradic
#A798E4 #E498AF #D5E498 #98E4CD
square
#A798E4 #E498AF #D5E498 #98E4CD
split-complementary
#A798E4 #E4CD98 #AFE498
monochromatic
#5437CB #7E68D7 #A798E4 #D0C8F1 #EAE7F9

Accessibility & contrast

On white

2.54
#A798E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#A798E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798E4
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798E4#FFFFFF#000000##000000
##A798E41.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A3E7
Deuteranopia (green-blind)
#85A1E2
Tritanopia (blue-blind)
#9AA5B4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a798e4;
/* rgb */ color: rgb(167, 152, 228);
/* oklch */ color: oklch(72.2% 0.110 292.5);
Tailwind
colors: {
  custom: {
    50: '#c2b6ec',
    500: '#a798e4',
    950: '#000000',
  },
}
SCSS
$custom: #a798e4;
$custom-light: #c2b6ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a798e4",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 228
  },
  "hsl": {
    "h": 251.842,
    "s": 58.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7216,
    "c": 0.10967,
    "h": 292.5
  },
  "luminance": 0.36273
}

Semantic roles & 50–950 ramp

primary
#A798E4
secondary
#ECF0DB
accent
#C61FA5
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798E4

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

Preview Lab → · Contrast checker → · Palette generator →

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