#AF62DC#AF62DC

#AF62DC is a light, vivid violet. Relative luminance 0.230; OKLCH L 63.5% C 0.188 H 311.3°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF62DC
RGBrgb(175, 98, 220)
HSLhsl(278, 64%, 62%)
HSVhsv(278, 55%, 86%)
CMYKcmyk(20.5%, 55.5%, 0%, 13.7%)
CIE-LABlab(55.09, 51.83, -50.29)
CIE-LCHlch(55.09, 72.22, 315.87°)
OKLaboklab(63.48% 0.124 -0.141)
OKLCHoklch(63.48% 0.188 311.3)
XYZxyz(34.9628, 23.0174, 70.2973)
Luminance0.2302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62DC #8FDC62
analogous
#7262DC #AF62DC #DC62CC
triadic
#AF62DC #DCAF62 #62DCAF
tetradic
#AF62DC #DC7262 #8FDC62 #62CCDC
square
#AF62DC #DC7262 #8FDC62 #62CCDC
split-complementary
#AF62DC #CCDC62 #62DC72
monochromatic
#7224A0 #9630D1 #AF62DC #C994E7 #E2C6F2

Accessibility & contrast

On white

3.75
#AF62DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#AF62DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62DC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62DC#FFFFFF#000000##000000
##AF62DC1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#5985D9
Tritanopia (blue-blind)
#AA7796
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af62dc;
/* rgb */ color: rgb(175, 98, 220);
/* oklch */ color: oklch(63.5% 0.188 311.3);
Tailwind
colors: {
  custom: {
    50: '#ca92e7',
    500: '#af62dc',
    950: '#000000',
  },
}
SCSS
$custom: #af62dc;
$custom-light: #ca92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af62dc",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 277.869,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63475,
    "c": 0.18776,
    "h": 311.3
  },
  "luminance": 0.23017
}

Semantic roles & 50–950 ramp

primary
#AF62DC
secondary
#C7E3B7
accent
#CB1A5C
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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