#AF78FF#AF78FF

#AF78FF is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.8% C 0.195 H 300.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AF78FF
RGBrgb(175, 120, 255)
HSLhsl(264, 100%, 74%)
HSVhsv(264, 53%, 100%)
CMYKcmyk(31.4%, 52.9%, 0%, 0%)
CIE-LABlab(61.45, 48.32, -59.63)
CIE-LCHlch(61.45, 76.75, 309.02°)
OKLaboklab(68.79% 0.0978 -0.1684)
OKLCHoklch(68.79% 0.195 300.1)
XYZxyz(42.4414, 29.7666, 98.0979)
Luminance0.2977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FF #C8FF78
analogous
#7884FF #AF78FF #F278FF
triadic
#AF78FF #FFAF78 #78FFAF
tetradic
#AF78FF #FF7884 #C8FF78 #78FFF2
square
#AF78FF #FF7884 #C8FF78 #78FFF2
split-complementary
#AF78FF #FFF278 #84FF78
monochromatic
#6700FD #8B3BFF #AF78FF #D3B5FF #EDE0FF

Accessibility & contrast

On white

3.02
#AF78FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#AF78FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FF#FFFFFF#000000##000000
##AF78FF1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4494FF
Deuteranopia (green-blind)
#5593FC
Tritanopia (blue-blind)
#9F92B0
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78ff;
/* rgb */ color: rgb(175, 120, 255);
/* oklch */ color: oklch(68.8% 0.195 300.1);
Tailwind
colors: {
  custom: {
    50: '#caa0ff',
    500: '#af78ff',
    950: '#000000',
  },
}
SCSS
$custom: #af78ff;
$custom-light: #caa0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af78ff",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 255
  },
  "hsl": {
    "h": 264.444,
    "s": 100,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68787,
    "c": 0.19471,
    "h": 300.1
  },
  "luminance": 0.29767
}

Semantic roles & 50–950 ramp

primary
#AF78FF
secondary
#E9F7D4
accent
#E60088
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF78FF

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

Preview Lab → · Contrast checker → · Palette generator →

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