#AF5DDC#AF5DDC

#AF5DDC is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.8% C 0.195 H 311.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF5DDC
RGBrgb(175, 93, 220)
HSLhsl(279, 64%, 61%)
HSVhsv(279, 58%, 86%)
CMYKcmyk(20.5%, 57.7%, 0%, 13.7%)
CIE-LABlab(54.14, 54.35, -51.80)
CIE-LCHlch(54.14, 75.08, 316.38°)
OKLaboklab(62.78% 0.1303 -0.1454)
OKLCHoklch(62.78% 0.195 311.9)
XYZxyz(34.5095, 22.1108, 70.1462)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DDC #8ADC5D
analogous
#705DDC #AF5DDC #DC5DCA
triadic
#AF5DDC #DCAF5D #5DDCAF
tetradic
#AF5DDC #DC705D #8ADC5D #5DCADC
square
#AF5DDC #DC705D #8ADC5D #5DCADC
split-complementary
#AF5DDC #CADC5D #5DDC70
monochromatic
#71229D #962DCF #AF5DDC #C88FE7 #E1C2F2

Accessibility & contrast

On white

3.87
#AF5DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AF5DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DDC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DDC#FFFFFF#000000##000000
##AF5DDC1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#347DE0
Deuteranopia (green-blind)
#5483D9
Tritanopia (blue-blind)
#AA7494
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5ddc;
/* rgb */ color: rgb(175, 93, 220);
/* oklch */ color: oklch(62.8% 0.195 311.9);
Tailwind
colors: {
  custom: {
    50: '#ca8fe7',
    500: '#af5ddc',
    950: '#000000',
  },
}
SCSS
$custom: #af5ddc;
$custom-light: #ca8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ddc",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 220
  },
  "hsl": {
    "h": 278.74,
    "s": 64.467,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62783,
    "c": 0.19525,
    "h": 311.9
  },
  "luminance": 0.2211
}

Semantic roles & 50–950 ramp

primary
#AF5DDC
secondary
#C3E2B3
accent
#CC1959
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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