#A798FC#A798FC

#A798FC is a light, vivid blue. Relative luminance 0.377; OKLCH L 73.3% C 0.143 H 289.3°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#A798FC
RGBrgb(167, 152, 252)
HSLhsl(249, 94%, 79%)
HSVhsv(249, 40%, 99%)
CMYKcmyk(33.7%, 39.7%, 0%, 1.2%)
CIE-LABlab(67.80, 27.72, -47.96)
CIE-LCHlch(67.80, 55.39, 300.03°)
OKLaboklab(73.33% 0.0471 -0.1345)
OKLCHoklch(73.33% 0.143 289.3)
XYZxyz(44.7306, 37.6991, 96.9965)
Luminance0.3770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798FC #EDFC98
analogous
#98BBFC #A798FC #D998FC
triadic
#A798FC #FCA798 #98FCA7
tetradic
#A798FC #FC98BB #EDFC98 #98FCD9
square
#A798FC #FC98BB #EDFC98 #98FCD9
split-complementary
#A798FC #FCD998 #BBFC98
monochromatic
#4121F9 #745DFA #A798FC #DAD3FE #E6E1FE

Accessibility & contrast

On white

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

On black

8.54
#A798FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798FC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798FC#FFFFFF#000000##000000
##A798FC1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a798fc;
/* rgb */ color: rgb(167, 152, 252);
/* oklch */ color: oklch(73.3% 0.143 289.3);
Tailwind
colors: {
  custom: {
    50: '#c4b6fe',
    500: '#a798fc',
    950: '#000000',
  },
}
SCSS
$custom: #a798fc;
$custom-light: #c4b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#a798fc",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 249,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73328,
    "c": 0.14251,
    "h": 289.3
  },
  "luminance": 0.377
}

Semantic roles & 50–950 ramp

primary
#A798FC
secondary
#F1F6D5
accent
#E600C3
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A798FC

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

Preview Lab → · Contrast checker → · Palette generator →

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