#AF78DB#AF78DB

#AF78DB is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.8% C 0.152 H 308.4°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#AF78DB
RGBrgb(175, 120, 219)
HSLhsl(273, 58%, 66%)
HSVhsv(273, 45%, 86%)
CMYKcmyk(20.1%, 45.2%, 0%, 14.1%)
CIE-LABlab(59.58, 39.89, -42.62)
CIE-LCHlch(59.58, 58.37, 313.11°)
OKLaboklab(66.79% 0.0943 -0.1188)
OKLCHoklch(66.79% 0.152 308.4)
XYZxyz(37.1794, 27.6618, 70.3847)
Luminance0.2766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78DB #A4DB78
analogous
#7E78DB #AF78DB #DB78D6
triadic
#AF78DB #DBAF78 #78DBAF
tetradic
#AF78DB #DB7E78 #A4DB78 #78D6DB
square
#AF78DB #DB7E78 #A4DB78 #78D6DB
split-complementary
#AF78DB #D6DB78 #78DB7E
monochromatic
#732EAB #9248CE #AF78DB #CCA8E8 #E8D9F5

Accessibility & contrast

On white

3.21
#AF78DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#AF78DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78DB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78DB#FFFFFF#000000##000000
##AF78DB1.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#608DDF
Deuteranopia (green-blind)
#6F90D8
Tritanopia (blue-blind)
#A9889F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af78db;
/* rgb */ color: rgb(175, 120, 219);
/* oklch */ color: oklch(66.8% 0.152 308.4);
Tailwind
colors: {
  custom: {
    50: '#c9a0e6',
    500: '#af78db',
    950: '#000000',
  },
}
SCSS
$custom: #af78db;
$custom-light: #c9a0e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af78db",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 273.333,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66788,
    "c": 0.15161,
    "h": 308.4
  },
  "luminance": 0.27661
}

Semantic roles & 50–950 ramp

primary
#AF78DB
secondary
#D6E7C7
accent
#C5206A
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF78DB

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

Preview Lab → · Contrast checker → · Palette generator →

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