#A778F2#A778F2

#A778F2 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.3% C 0.178 H 299.4°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#A778F2
RGBrgb(167, 120, 242)
HSLhsl(263, 82%, 71%)
HSVhsv(263, 50%, 95%)
CMYKcmyk(31%, 50.4%, 0%, 5.1%)
CIE-LABlab(59.94, 43.18, -54.91)
CIE-LCHlch(59.94, 69.86, 308.18°)
OKLaboklab(67.25% 0.0872 -0.1548)
OKLCHoklch(67.25% 0.178 299.4)
XYZxyz(38.6760, 28.0589, 87.3655)
Luminance0.2806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A778F2 #C3F278
analogous
#7886F2 #A778F2 #E478F2
triadic
#A778F2 #F2A778 #78F2A7
tetradic
#A778F2 #F27886 #C3F278 #78F2E4
square
#A778F2 #F27886 #C3F278 #78F2E4
split-complementary
#A778F2 #F2E478 #86F278
monochromatic
#6115DB #8340ED #A778F2 #CBB0F7 #EDE3FC

Accessibility & contrast

On white

3.18
#A778F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#A778F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A778F2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A778F2#FFFFFF#000000##000000
##A778F21.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D90F6
Deuteranopia (green-blind)
#5A8FEF
Tritanopia (blue-blind)
#988FAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a778f2;
/* rgb */ color: rgb(167, 120, 242);
/* oklch */ color: oklch(67.3% 0.178 299.4);
Tailwind
colors: {
  custom: {
    50: '#c4a0f7',
    500: '#a778f2',
    950: '#000000',
  },
}
SCSS
$custom: #a778f2;
$custom-light: #c4a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a778f2",
  "rgb": {
    "r": 167,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 263.115,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67252,
    "c": 0.17765,
    "h": 299.4
  },
  "luminance": 0.28059
}

Semantic roles & 50–950 ramp

primary
#A778F2
secondary
#E7F3D3
accent
#DF078C
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A778F2

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

Preview Lab → · Contrast checker → · Palette generator →

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