#A798DF#A798DF

#A798DF is a light, moderate violet. Relative luminance 0.360; OKLCH L 71.9% C 0.103 H 293.3°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#A798DF
RGBrgb(167, 152, 223)
HSLhsl(253, 53%, 74%)
HSVhsv(253, 32%, 87%)
CMYKcmyk(25.1%, 31.8%, 0%, 12.5%)
CIE-LABlab(66.52, 20.50, -34.05)
CIE-LCHlch(66.52, 39.75, 301.05°)
OKLaboklab(71.93% 0.0407 -0.0943)
OKLCHoklch(71.93% 0.103 293.3)
XYZxyz(40.4807, 35.9991, 74.6135)
Luminance0.3600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798DF #D0DF98
analogous
#98ACDF #A798DF #CA98DF
triadic
#A798DF #DFA798 #98DFA7
tetradic
#A798DF #DF98AC #D0DF98 #98DFCA
square
#A798DF #DF98AC #D0DF98 #98DFCA
split-complementary
#A798DF #DFCA98 #ACDF98
monochromatic
#583CC1 #7F69D0 #A798DF #CFC7EE #EBE8F8

Accessibility & contrast

On white

2.56
#A798DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#A798DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798DF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798DF#FFFFFF#000000##000000
##A798DF1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A3E2
Deuteranopia (green-blind)
#87A1DD
Tritanopia (blue-blind)
#9BA4B2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a798df;
/* rgb */ color: rgb(167, 152, 223);
/* oklch */ color: oklch(71.9% 0.103 293.3);
Tailwind
colors: {
  custom: {
    50: '#c2b6e9',
    500: '#a798df',
    950: '#000000',
  },
}
SCSS
$custom: #a798df;
$custom-light: #c2b6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#a798df",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 252.676,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71931,
    "c": 0.10275,
    "h": 293.3
  },
  "luminance": 0.36
}

Semantic roles & 50–950 ramp

primary
#A798DF
secondary
#EBEFDC
accent
#C0259F
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #A798DF

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

Preview Lab → · Contrast checker → · Palette generator →

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