#A798CD#A798CD

#A798CD is a light, moderate violet. Relative luminance 0.351; OKLCH L 71.2% C 0.078 H 297.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#A798CD
RGBrgb(167, 152, 205)
HSLhsl(257, 35%, 70%)
HSVhsv(257, 26%, 80%)
CMYKcmyk(18.5%, 25.9%, 0%, 19.6%)
CIE-LABlab(65.81, 16.30, -25.17)
CIE-LCHlch(65.81, 29.98, 302.92°)
OKLaboklab(71.15% 0.0357 -0.069)
OKLCHoklch(71.15% 0.078 297.4)
XYZxyz(38.1816, 35.0795, 62.5053)
Luminance0.3508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798CD #BECD98
analogous
#98A3CD #A798CD #C298CD
triadic
#A798CD #CDA798 #98CDA7
tetradic
#A798CD #CD98A3 #BECD98 #98CDC2
square
#A798CD #CD98A3 #BECD98 #98CDC2
split-complementary
#A798CD #CDC298 #A3CD98
monochromatic
#644D9E #846FB9 #A798CD #CAC1E1 #EDEAF5

Accessibility & contrast

On white

2.62
#A798CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#A798CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798CD
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798CD#FFFFFF#000000##000000
##A798CD1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA0CF
Deuteranopia (green-blind)
#8F9FCB
Tritanopia (blue-blind)
#A0A0AA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a798cd;
/* rgb */ color: rgb(167, 152, 205);
/* oklch */ color: oklch(71.2% 0.078 297.4);
Tailwind
colors: {
  custom: {
    50: '#c1b6dc',
    500: '#a798cd',
    950: '#000000',
  },
}
SCSS
$custom: #a798cd;
$custom-light: #c1b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a798cd",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 256.981,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.71152,
    "c": 0.07773,
    "h": 297.4
  },
  "luminance": 0.3508
}

Semantic roles & 50–950 ramp

primary
#A798CD
secondary
#E4E8D9
accent
#AD388C
background
#FBFBFD
surface
#F7F6FB
border
#D0D0D4
text
#121115
muted
#818083

Preview Lab

Preview with #A798CD

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

Preview Lab → · Contrast checker → · Palette generator →

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