#AF5CD9#AF5CD9

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

Color values

HEX#AF5CD9
RGBrgb(175, 92, 217)
HSLhsl(280, 62%, 61%)
HSVhsv(280, 58%, 85%)
CMYKcmyk(19.4%, 57.6%, 0%, 14.9%)
CIE-LABlab(53.79, 54.21, -50.66)
CIE-LCHlch(53.79, 74.20, 316.94°)
OKLaboklab(62.47% 0.1315 -0.1421)
OKLCHoklch(62.47% 0.194 312.8)
XYZxyz(34.0286, 21.7789, 68.0434)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CD9 #86D95C
analogous
#705CD9 #AF5CD9 #D95CC4
triadic
#AF5CD9 #D9AF5C #5CD9AF
tetradic
#AF5CD9 #D9705C #86D95C #5CC4D9
square
#AF5CD9 #D9705C #86D95C #5CC4D9
split-complementary
#AF5CD9 #C4D95C #5CD970
monochromatic
#702397 #952FC9 #AF5CD9 #C78EE5 #E0BFF0

Accessibility & contrast

On white

3.92
#AF5CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#AF5CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CD9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CD9#FFFFFF#000000##000000
##AF5CD91.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#357CDD
Deuteranopia (green-blind)
#5582D6
Tritanopia (blue-blind)
#AB7292
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5cd9;
/* rgb */ color: rgb(175, 92, 217);
/* oklch */ color: oklch(62.5% 0.194 312.8);
Tailwind
colors: {
  custom: {
    50: '#ca8ee5',
    500: '#af5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #af5cd9;
$custom-light: #ca8ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cd9",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 279.84,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62471,
    "c": 0.19359,
    "h": 312.8
  },
  "luminance": 0.21778
}

Semantic roles & 50–950 ramp

primary
#AF5CD9
secondary
#C1E0B1
accent
#CA1C56
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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