#AF5CDA#AF5CDA

#AF5CDA is a light, vivid violet. Relative luminance 0.218; OKLCH L 62.5% C 0.195 H 312.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF5CDA
RGBrgb(175, 92, 218)
HSLhsl(280, 63%, 61%)
HSVhsv(280, 58%, 85%)
CMYKcmyk(19.7%, 57.8%, 0%, 14.5%)
CIE-LABlab(53.85, 54.42, -51.14)
CIE-LCHlch(53.85, 74.68, 316.78°)
OKLaboklab(62.53% 0.1316 -0.1434)
OKLCHoklch(62.53% 0.195 312.5)
XYZxyz(34.1590, 21.8311, 68.7305)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CDA #87DA5C
analogous
#705CDA #AF5CDA #DA5CC6
triadic
#AF5CDA #DAAF5C #5CDAAF
tetradic
#AF5CDA #DA705C #87DA5C #5CC6DA
square
#AF5CDA #DA705C #87DA5C #5CC6DA
split-complementary
#AF5CDA #C6DA5C #5CDA70
monochromatic
#712399 #952ECB #AF5CDA #C78EE5 #E0C0F1

Accessibility & contrast

On white

3.91
#AF5CDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#AF5CDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CDA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CDA#FFFFFF#000000##000000
##AF5CDA1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#347CDE
Deuteranopia (green-blind)
#5583D7
Tritanopia (blue-blind)
#AB7292
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5cda;
/* rgb */ color: rgb(175, 92, 218);
/* oklch */ color: oklch(62.5% 0.195 312.5);
Tailwind
colors: {
  custom: {
    50: '#ca8ee6',
    500: '#af5cda',
    950: '#000000',
  },
}
SCSS
$custom: #af5cda;
$custom-light: #ca8ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cda",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 279.524,
    "s": 63,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6253,
    "c": 0.19464,
    "h": 312.5
  },
  "luminance": 0.2183
}

Semantic roles & 50–950 ramp

primary
#AF5CDA
secondary
#C1E1B1
accent
#CB1B57
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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