#A798CF#A798CF

#A798CF is a light, moderate violet. Relative luminance 0.352; OKLCH L 71.2% C 0.081 H 296.8°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#A798CF
RGBrgb(167, 152, 207)
HSLhsl(256, 36%, 70%)
HSVhsv(256, 27%, 81%)
CMYKcmyk(19.3%, 26.6%, 0%, 18.8%)
CIE-LABlab(65.89, 16.75, -26.16)
CIE-LCHlch(65.89, 31.07, 302.63°)
OKLaboklab(71.24% 0.0363 -0.0719)
OKLCHoklch(71.24% 0.081 296.8)
XYZxyz(38.4246, 35.1767, 63.7848)
Luminance0.3518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798CF #C0CF98
analogous
#98A4CF #A798CF #C398CF
triadic
#A798CF #CFA798 #98CFA7
tetradic
#A798CF #CF98A4 #C0CF98 #98CFC3
square
#A798CF #CF98A4 #C0CF98 #98CFC3
split-complementary
#A798CF #CFC398 #A4CF98
monochromatic
#634BA1 #836EBC #A798CF #CBC2E2 #EDEAF5

Accessibility & contrast

On white

2.61
#A798CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#A798CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798CF
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798CF#FFFFFF#000000##000000
##A798CF1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA0D1
Deuteranopia (green-blind)
#8E9FCD
Tritanopia (blue-blind)
#A0A1AB
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a798cf;
/* rgb */ color: rgb(167, 152, 207);
/* oklch */ color: oklch(71.2% 0.081 296.8);
Tailwind
colors: {
  custom: {
    50: '#c1b6dd',
    500: '#a798cf',
    950: '#000000',
  },
}
SCSS
$custom: #a798cf;
$custom-light: #c1b6dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a798cf",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 207
  },
  "hsl": {
    "h": 256.364,
    "s": 36.424,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71235,
    "c": 0.08052,
    "h": 296.8
  },
  "luminance": 0.35177
}

Semantic roles & 50–950 ramp

primary
#A798CF
secondary
#E5E9DA
accent
#AF368E
background
#FBFBFD
surface
#F7F6FB
border
#D0D0D4
text
#121115
muted
#818083

Preview Lab

Preview with #A798CF

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

Preview Lab → · Contrast checker → · Palette generator →

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