#AF78DF#AF78DF

#AF78DF is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.0% C 0.156 H 307.3°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AF78DF
RGBrgb(175, 120, 223)
HSLhsl(272, 62%, 67%)
HSVhsv(272, 46%, 87%)
CMYKcmyk(21.5%, 46.2%, 0%, 12.5%)
CIE-LABlab(59.78, 40.79, -44.55)
CIE-LCHlch(59.78, 60.40, 312.48°)
OKLaboklab(67% 0.0948 -0.1244)
OKLCHoklch(67% 0.156 307.3)
XYZxyz(37.7123, 27.8750, 73.1914)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78DF #A8DF78
analogous
#7C78DF #AF78DF #DF78DC
triadic
#AF78DF #DFAF78 #78DFAF
tetradic
#AF78DF #DF7C78 #A8DF78 #78DCDF
square
#AF78DF #DF7C78 #A8DF78 #78DCDF
split-complementary
#AF78DF #DCDF78 #78DF7C
monochromatic
#732AB2 #9247D3 #AF78DF #CCA9EB #EADBF6

Accessibility & contrast

On white

3.19
#AF78DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#AF78DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78DF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78DF#FFFFFF#000000##000000
##AF78DF1.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8EE3
Deuteranopia (green-blind)
#6C91DC
Tritanopia (blue-blind)
#A889A1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af78df;
/* rgb */ color: rgb(175, 120, 223);
/* oklch */ color: oklch(67.0% 0.156 307.3);
Tailwind
colors: {
  custom: {
    50: '#c9a0e9',
    500: '#af78df',
    950: '#000000',
  },
}
SCSS
$custom: #af78df;
$custom-light: #c9a0e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af78df",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 272.039,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66996,
    "c": 0.1564,
    "h": 307.3
  },
  "luminance": 0.27875
}

Semantic roles & 50–950 ramp

primary
#AF78DF
secondary
#D8EAC9
accent
#C91C6D
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF78DF

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

Preview Lab → · Contrast checker → · Palette generator →

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