#AF78CD#AF78CD

#AF78CD is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.1% C 0.135 H 312.9°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF78CD
RGBrgb(175, 120, 205)
HSLhsl(279, 46%, 64%)
HSVhsv(279, 41%, 80%)
CMYKcmyk(14.6%, 41.5%, 0%, 19.6%)
CIE-LABlab(58.93, 36.80, -35.75)
CIE-LCHlch(58.93, 51.31, 315.83°)
OKLaboklab(66.09% 0.0919 -0.0989)
OKLCHoklch(66.09% 0.135 312.9)
XYZxyz(35.4133, 26.9554, 61.0831)
Luminance0.2696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78CD #96CD78
analogous
#8478CD #AF78CD #CD78C0
triadic
#AF78CD #CDAF78 #78CDAF
tetradic
#AF78CD #CD8478 #96CD78 #78C0CD
square
#AF78CD #CD8478 #96CD78 #78C0CD
split-complementary
#AF78CD #C0CD78 #78CD84
monochromatic
#733794 #954BBC #AF78CD #C9A5DE #E4D1EE

Accessibility & contrast

On white

3.29
#AF78CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#AF78CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78CD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78CD#FFFFFF#000000##000000
##AF78CD1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#688BD0
Deuteranopia (green-blind)
#768FCB
Tritanopia (blue-blind)
#AC8499
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af78cd;
/* rgb */ color: rgb(175, 120, 205);
/* oklch */ color: oklch(66.1% 0.135 312.9);
Tailwind
colors: {
  custom: {
    50: '#c8a0dc',
    500: '#af78cd',
    950: '#000000',
  },
}
SCSS
$custom: #af78cd;
$custom-light: #c8a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af78cd",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 278.824,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.66089,
    "c": 0.13502,
    "h": 312.9
  },
  "luminance": 0.26955
}

Semantic roles & 50–950 ramp

primary
#AF78CD
secondary
#CCDFC1
accent
#B92C5E
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130F15
muted
#827E83

Preview Lab

Preview with #AF78CD

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

Preview Lab → · Contrast checker → · Palette generator →

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