#A798ED#A798ED

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

Color values

HEX#A798ED
RGBrgb(167, 152, 237)
HSLhsl(251, 70%, 76%)
HSVhsv(251, 36%, 93%)
CMYKcmyk(29.5%, 35.9%, 0%, 7.1%)
CIE-LABlab(67.12, 23.93, -40.83)
CIE-LCHlch(67.12, 47.32, 300.37°)
OKLaboklab(72.58% 0.044 -0.1138)
OKLCHoklch(72.58% 0.122 291.1)
XYZxyz(42.4468, 36.7856, 84.9683)
Luminance0.3679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798ED #DEED98
analogous
#98B4ED #A798ED #D298ED
triadic
#A798ED #EDA798 #98EDA7
tetradic
#A798ED #ED98B4 #DEED98 #98EDD2
square
#A798ED #ED98B4 #DEED98 #98EDD2
split-complementary
#A798ED #EDD298 #B4ED98
monochromatic
#4E30DB #7A64E4 #A798ED #D4CCF6 #E9E5FA

Accessibility & contrast

On white

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

On black

8.36
#A798ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798ED
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798ED#FFFFFF#000000##000000
##A798ED1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F0
Deuteranopia (green-blind)
#81A2EB
Tritanopia (blue-blind)
#97A7B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a798ed;
/* rgb */ color: rgb(167, 152, 237);
/* oklch */ color: oklch(72.6% 0.122 291.1);
Tailwind
colors: {
  custom: {
    50: '#c3b6f3',
    500: '#a798ed',
    950: '#000000',
  },
}
SCSS
$custom: #a798ed;
$custom-light: #c3b6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ed",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 250.588,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72584,
    "c": 0.12206,
    "h": 291.1
  },
  "luminance": 0.36786
}

Semantic roles & 50–950 ramp

primary
#A798ED
secondary
#EEF2D9
accent
#D213B1
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A798ED

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

Preview Lab → · Contrast checker → · Palette generator →

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