#AF61DC#AF61DC

#AF61DC is a light, vivid violet. Relative luminance 0.228; OKLCH L 63.3% C 0.189 H 311.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF61DC
RGBrgb(175, 97, 220)
HSLhsl(278, 64%, 62%)
HSVhsv(278, 56%, 86%)
CMYKcmyk(20.5%, 55.9%, 0%, 13.7%)
CIE-LABlab(54.90, 52.34, -50.59)
CIE-LCHlch(54.90, 72.80, 315.97°)
OKLaboklab(63.33% 0.1253 -0.1419)
OKLCHoklch(63.33% 0.189 311.4)
XYZxyz(34.8698, 22.8314, 70.2663)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF61DC #8EDC61
analogous
#7261DC #AF61DC #DC61CC
triadic
#AF61DC #DCAF61 #61DCAF
tetradic
#AF61DC #DC7261 #8EDC61 #61CCDC
square
#AF61DC #DC7261 #8EDC61 #61CCDC
split-complementary
#AF61DC #CCDC61 #61DC72
monochromatic
#72239F #962FD1 #AF61DC #C893E7 #E2C5F2

Accessibility & contrast

On white

3.77
#AF61DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF61DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF61DC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF61DC#FFFFFF#000000##000000
##AF61DC1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C80E0
Deuteranopia (green-blind)
#5885D9
Tritanopia (blue-blind)
#AA7795
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af61dc;
/* rgb */ color: rgb(175, 97, 220);
/* oklch */ color: oklch(63.3% 0.189 311.4);
Tailwind
colors: {
  custom: {
    50: '#ca91e7',
    500: '#af61dc',
    950: '#000000',
  },
}
SCSS
$custom: #af61dc;
$custom-light: #ca91e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af61dc",
  "rgb": {
    "r": 175,
    "g": 97,
    "b": 220
  },
  "hsl": {
    "h": 278.049,
    "s": 63.731,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63335,
    "c": 0.18928,
    "h": 311.4
  },
  "luminance": 0.22831
}

Semantic roles & 50–950 ramp

primary
#AF61DC
secondary
#C6E3B6
accent
#CC1A5B
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF61DC

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

Preview Lab → · Contrast checker → · Palette generator →

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