#AF5CDC#AF5CDC

#AF5CDC is a light, vivid violet. Relative luminance 0.219; OKLCH L 62.6% C 0.197 H 312.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF5CDC
RGBrgb(175, 92, 220)
HSLhsl(279, 65%, 61%)
HSVhsv(279, 58%, 86%)
CMYKcmyk(20.5%, 58.2%, 0%, 13.7%)
CIE-LABlab(53.96, 54.85, -52.09)
CIE-LCHlch(53.96, 75.64, 316.48°)
OKLaboklab(62.65% 0.1316 -0.1462)
OKLCHoklch(62.65% 0.197 312)
XYZxyz(34.4223, 21.9364, 70.1171)
Luminance0.2194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CDC #89DC5C
analogous
#6F5CDC #AF5CDC #DC5CC9
triadic
#AF5CDC #DCAF5C #5CDCAF
tetradic
#AF5CDC #DC6F5C #89DC5C #5CC9DC
square
#AF5CDC #DC6F5C #89DC5C #5CC9DC
split-complementary
#AF5CDC #C9DC5C #5CDC6F
monochromatic
#71229C #952CCE #AF5CDC #C88EE7 #E0C1F2

Accessibility & contrast

On white

3.90
#AF5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#AF5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CDC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CDC#FFFFFF#000000##000000
##AF5CDC1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#327DE0
Deuteranopia (green-blind)
#5383D9
Tritanopia (blue-blind)
#AA7393
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5cdc;
/* rgb */ color: rgb(175, 92, 220);
/* oklch */ color: oklch(62.6% 0.197 312.0);
Tailwind
colors: {
  custom: {
    50: '#ca8ee7',
    500: '#af5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #af5cdc;
$custom-light: #ca8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cdc",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 278.906,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62648,
    "c": 0.19673,
    "h": 312
  },
  "luminance": 0.21936
}

Semantic roles & 50–950 ramp

primary
#AF5CDC
secondary
#C3E2B2
accent
#CC1958
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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