#AF5FD9#AF5FD9

#AF5FD9 is a light, vivid violet. Relative luminance 0.223; OKLCH L 62.9% C 0.189 H 312.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF5FD9
RGBrgb(175, 95, 217)
HSLhsl(279, 62%, 61%)
HSVhsv(279, 56%, 85%)
CMYKcmyk(19.4%, 56.2%, 0%, 14.9%)
CIE-LABlab(54.35, 52.71, -49.77)
CIE-LCHlch(54.35, 72.49, 316.64°)
OKLaboklab(62.88% 0.1277 -0.1395)
OKLCHoklch(62.88% 0.189 312.5)
XYZxyz(34.2936, 22.3090, 68.1317)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FD9 #89D95F
analogous
#725FD9 #AF5FD9 #D95FC6
triadic
#AF5FD9 #D9AF5F #5FD9AF
tetradic
#AF5FD9 #D9725F #89D95F #5FC6D9
square
#AF5FD9 #D9725F #89D95F #5FC6D9
split-complementary
#AF5FD9 #C6D95F #5FD972
monochromatic
#712499 #9530CB #AF5FD9 #C890E5 #E0C2F0

Accessibility & contrast

On white

3.85
#AF5FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AF5FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FD9
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FD9#FFFFFF#000000##000000
##AF5FD91.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7EDD
Deuteranopia (green-blind)
#5884D6
Tritanopia (blue-blind)
#AB7493
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5fd9;
/* rgb */ color: rgb(175, 95, 217);
/* oklch */ color: oklch(62.9% 0.189 312.5);
Tailwind
colors: {
  custom: {
    50: '#ca90e5',
    500: '#af5fd9',
    950: '#000000',
  },
}
SCSS
$custom: #af5fd9;
$custom-light: #ca90e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fd9",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 217
  },
  "hsl": {
    "h": 279.344,
    "s": 61.616,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62882,
    "c": 0.18909,
    "h": 312.5
  },
  "luminance": 0.22308
}

Semantic roles & 50–950 ramp

primary
#AF5FD9
secondary
#C3E1B3
accent
#C91C58
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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