#A798FB#A798FB

#A798FB is a light, vivid blue. Relative luminance 0.376; OKLCH L 73.3% C 0.141 H 289.4°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#A798FB
RGBrgb(167, 152, 251)
HSLhsl(249, 93%, 79%)
HSVhsv(249, 39%, 98%)
CMYKcmyk(33.5%, 39.4%, 0%, 1.6%)
CIE-LABlab(67.75, 27.46, -47.49)
CIE-LCHlch(67.75, 54.86, 300.04°)
OKLaboklab(73.28% 0.0469 -0.1331)
OKLCHoklch(73.28% 0.141 289.4)
XYZxyz(44.5726, 37.6359, 96.1641)
Luminance0.3764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798FB #ECFB98
analogous
#98BBFB #A798FB #D998FB
triadic
#A798FB #FBA798 #98FBA7
tetradic
#A798FB #FB98BB #ECFB98 #98FBD9
square
#A798FB #FB98BB #ECFB98 #98FBD9
split-complementary
#A798FB #FBD998 #BBFB98
monochromatic
#4222F6 #755DF9 #A798FB #D9D3FD #E6E2FE

Accessibility & contrast

On white

2.46
#A798FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#A798FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798FB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798FB#FFFFFF#000000##000000
##A798FB1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A7FF
Deuteranopia (green-blind)
#79A3F9
Tritanopia (blue-blind)
#92AABE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a798fb;
/* rgb */ color: rgb(167, 152, 251);
/* oklch */ color: oklch(73.3% 0.141 289.4);
Tailwind
colors: {
  custom: {
    50: '#c4b6fd',
    500: '#a798fb',
    950: '#000000',
  },
}
SCSS
$custom: #a798fb;
$custom-light: #c4b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a798fb",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 249.091,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.73277,
    "c": 0.14116,
    "h": 289.4
  },
  "luminance": 0.37637
}

Semantic roles & 50–950 ramp

primary
#A798FB
secondary
#F1F6D5
accent
#E600C3
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #A798FB

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

Preview Lab → · Contrast checker → · Palette generator →

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