#A798C1#A798C1

#A798C1 is a light, moderate violet. Relative luminance 0.345; OKLCH L 70.7% C 0.061 H 301.6°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#A798C1
RGBrgb(167, 152, 193)
HSLhsl(262, 25%, 68%)
HSVhsv(262, 21%, 76%)
CMYKcmyk(13.5%, 21.2%, 0%, 24.3%)
CIE-LABlab(65.38, 13.63, -19.14)
CIE-LCHlch(65.38, 23.50, 305.46°)
OKLaboklab(70.67% 0.032 -0.0521)
OKLCHoklch(70.67% 0.061 301.6)
XYZxyz(36.7883, 34.5222, 55.1671)
Luminance0.3452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A798C1 #B2C198
analogous
#989EC1 #A798C1 #BB98C1
triadic
#A798C1 #C1A798 #98C1A7
tetradic
#A798C1 #C1989E #B2C198 #98C1BB
square
#A798C1 #C1989E #B2C198 #98C1BB
split-complementary
#A798C1 #C1BB98 #9EC198
monochromatic
#68548B #8672AA #A798C1 #C8BED8 #E8E4EF

Accessibility & contrast

On white

2.66
#A798C1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#A798C1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A798C1
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A798C1#FFFFFF#000000##000000
##A798C11.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#909EC3
Deuteranopia (green-blind)
#939FC0
Tritanopia (blue-blind)
#A39EA6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a798c1;
/* rgb */ color: rgb(167, 152, 193);
/* oklch */ color: oklch(70.7% 0.061 301.6);
Tailwind
colors: {
  custom: {
    50: '#c1b6d3',
    500: '#a798c1',
    950: '#000000',
  },
}
SCSS
$custom: #a798c1;
$custom-light: #c1b6d3;
$custom-dark: #000000;
JSON
{
  "hex": "#a798c1",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 193
  },
  "hsl": {
    "h": 261.951,
    "s": 24.848,
    "l": 67.647
  },
  "oklch": {
    "l": 0.70672,
    "c": 0.06113,
    "h": 301.6
  },
  "luminance": 0.34522
}

Semantic roles & 50–950 ramp

primary
#A798C1
secondary
#DCE1D4
accent
#A34280
background
#FBFBFC
surface
#F7F6F9
border
#D0D0D2
text
#121114
muted
#818082

Preview Lab

Preview with #A798C1

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

Preview Lab → · Contrast checker → · Palette generator →

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