#A766DC#A766DC

#A766DC is a light, vivid violet. Relative luminance 0.229; OKLCH L 63.2% C 0.179 H 307.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#A766DC
RGBrgb(167, 102, 220)
HSLhsl(273, 63%, 63%)
HSVhsv(273, 54%, 86%)
CMYKcmyk(24.1%, 53.6%, 0%, 13.7%)
CIE-LABlab(54.95, 47.71, -50.56)
CIE-LCHlch(54.95, 69.52, 313.34°)
OKLaboklab(63.17% 0.1089 -0.142)
OKLCHoklch(63.17% 0.179 307.5)
XYZxyz(33.6034, 22.8859, 70.3434)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A766DC #9BDC66
analogous
#6C66DC #A766DC #DC66D6
triadic
#A766DC #DCA766 #66DCA7
tetradic
#A766DC #DC6C66 #9BDC66 #66D6DC
square
#A766DC #DC6C66 #9BDC66 #66D6DC
split-complementary
#A766DC #D6DC66 #66DC6C
monochromatic
#6A25A2 #8A34D1 #A766DC #C498E7 #E0CAF3

Accessibility & contrast

On white

3.77
#A766DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#A766DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A766DC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A766DC#FFFFFF#000000##000000
##A766DC1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4181E0
Deuteranopia (green-blind)
#5684D9
Tritanopia (blue-blind)
#9F7B97
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a766dc;
/* rgb */ color: rgb(167, 102, 220);
/* oklch */ color: oklch(63.2% 0.179 307.5);
Tailwind
colors: {
  custom: {
    50: '#c494e7',
    500: '#a766dc',
    950: '#000000',
  },
}
SCSS
$custom: #a766dc;
$custom-light: #c494e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a766dc",
  "rgb": {
    "r": 167,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 273.051,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63171,
    "c": 0.17899,
    "h": 307.5
  },
  "luminance": 0.22886
}

Semantic roles & 50–950 ramp

primary
#A766DC
secondary
#CDE4BA
accent
#CB1B6A
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #A766DC

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

Preview Lab → · Contrast checker → · Palette generator →

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