#A798FA#A798FA

#A798FA is a light, vivid blue. Relative luminance 0.376; OKLCH L 73.2% C 0.140 H 289.5°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#A798FA
RGBrgb(167, 152, 250)
HSLhsl(249, 91%, 79%)
HSVhsv(249, 39%, 98%)
CMYKcmyk(33.2%, 39.2%, 0%, 2%)
CIE-LABlab(67.70, 27.21, -47.02)
CIE-LCHlch(67.70, 54.32, 300.06°)
OKLaboklab(73.23% 0.0467 -0.1318)
OKLCHoklch(73.23% 0.14 289.5)
XYZxyz(44.4154, 37.5730, 95.3362)
Luminance0.3757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798FA #EBFA98
analogous
#98BAFA #A798FA #D898FA
triadic
#A798FA #FAA798 #98FAA7
tetradic
#A798FA #FA98BA #EBFA98 #98FAD8
square
#A798FA #FA98BA #EBFA98 #98FAD8
split-complementary
#A798FA #FAD898 #BAFA98
monochromatic
#4323F4 #755EF7 #A798FA #D9D2FD #E6E2FE

Accessibility & contrast

On white

2.47
#A798FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#A798FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798FA
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798FA#FFFFFF#000000##000000
##A798FA1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA7FE
Deuteranopia (green-blind)
#7AA3F8
Tritanopia (blue-blind)
#93AABD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a798fa;
/* rgb */ color: rgb(167, 152, 250);
/* oklch */ color: oklch(73.2% 0.140 289.5);
Tailwind
colors: {
  custom: {
    50: '#c4b6fc',
    500: '#a798fa',
    950: '#000000',
  },
}
SCSS
$custom: #a798fa;
$custom-light: #c4b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#a798fa",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 249.184,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73227,
    "c": 0.1398,
    "h": 289.5
  },
  "luminance": 0.37574
}

Semantic roles & 50–950 ramp

primary
#A798FA
secondary
#F1F6D5
accent
#E600C2
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A798FA

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

Preview Lab → · Contrast checker → · Palette generator →

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