#A798FF#A798FF

#A798FF is a light, vivid blue. Relative luminance 0.379; OKLCH L 73.5% C 0.147 H 288.9°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#A798FF
RGBrgb(167, 152, 255)
HSLhsl(249, 100%, 80%)
HSVhsv(249, 40%, 100%)
CMYKcmyk(34.5%, 40.4%, 0%, 0%)
CIE-LABlab(67.94, 28.49, -49.37)
CIE-LCHlch(67.94, 57.00, 299.99°)
OKLaboklab(73.48% 0.0476 -0.1386)
OKLCHoklch(73.48% 0.147 288.9)
XYZxyz(45.2098, 37.8908, 99.5200)
Luminance0.3789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798FF #F0FF98
analogous
#98BDFF #A798FF #DB98FF
triadic
#A798FF #FFA798 #98FFA7
tetradic
#A798FF #FF98BD #F0FF98 #98FFDB
square
#A798FF #FF98BD #F0FF98 #98FFDB
split-complementary
#A798FF #FFDB98 #BDFF98
monochromatic
#3E1EFF #735BFF #A798FF #DBD5FF #E5E0FF

Accessibility & contrast

On white

2.45
#A798FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#A798FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798FF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798FF#FFFFFF#000000##000000
##A798FF1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A8FF
Deuteranopia (green-blind)
#77A3FC
Tritanopia (blue-blind)
#91ABBF
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a798ff;
/* rgb */ color: rgb(167, 152, 255);
/* oklch */ color: oklch(73.5% 0.147 288.9);
Tailwind
colors: {
  custom: {
    50: '#c4b6ff',
    500: '#a798ff',
    950: '#000000',
  },
}
SCSS
$custom: #a798ff;
$custom-light: #c4b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a798ff",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 248.738,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.73482,
    "c": 0.14656,
    "h": 288.9
  },
  "luminance": 0.37892
}

Semantic roles & 50–950 ramp

primary
#A798FF
secondary
#F2F7D4
accent
#E600C4
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A798FF

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

Preview Lab → · Contrast checker → · Palette generator →

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