#A798EB#A798EB

#A798EB is a light, moderate violet. Relative luminance 0.367; OKLCH L 72.5% C 0.119 H 291.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#A798EB
RGBrgb(167, 152, 235)
HSLhsl(251, 67%, 76%)
HSVhsv(251, 35%, 92%)
CMYKcmyk(28.9%, 35.3%, 0%, 7.8%)
CIE-LABlab(67.03, 23.43, -39.87)
CIE-LCHlch(67.03, 46.24, 300.44°)
OKLaboklab(72.49% 0.0436 -0.1111)
OKLCHoklch(72.49% 0.119 291.4)
XYZxyz(42.1562, 36.6694, 83.4380)
Luminance0.3667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798EB #DCEB98
analogous
#98B2EB #A798EB #D098EB
triadic
#A798EB #EBA798 #98EBA7
tetradic
#A798EB #EB98B2 #DCEB98 #98EBD0
square
#A798EB #EB98B2 #DCEB98 #98EBD0
split-complementary
#A798EB #EBD098 #B2EB98
monochromatic
#4F32D7 #7B65E1 #A798EB #D3CBF5 #E9E5FA

Accessibility & contrast

On white

2.52
#A798EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#A798EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798EB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798EB#FFFFFF#000000##000000
##A798EB1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A4EE
Deuteranopia (green-blind)
#82A1E9
Tritanopia (blue-blind)
#98A7B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a798eb;
/* rgb */ color: rgb(167, 152, 235);
/* oklch */ color: oklch(72.5% 0.119 291.4);
Tailwind
colors: {
  custom: {
    50: '#c3b6f1',
    500: '#a798eb',
    950: '#000000',
  },
}
SCSS
$custom: #a798eb;
$custom-light: #c3b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a798eb",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 250.843,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72489,
    "c": 0.11931,
    "h": 291.4
  },
  "luminance": 0.3667
}

Semantic roles & 50–950 ramp

primary
#A798EB
secondary
#EDF2D9
accent
#CF16AE
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #A798EB

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

Preview Lab → · Contrast checker → · Palette generator →

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