#AF5FDF#AF5FDF

#AF5FDF is a light, vivid violet. Relative luminance 0.226; OKLCH L 63.2% C 0.195 H 310.9°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF5FDF
RGBrgb(175, 95, 223)
HSLhsl(278, 67%, 62%)
HSVhsv(278, 57%, 87%)
CMYKcmyk(21.5%, 57.4%, 0%, 12.5%)
CIE-LABlab(54.69, 54.00, -52.63)
CIE-LCHlch(54.69, 75.40, 315.74°)
OKLaboklab(63.23% 0.1279 -0.1478)
OKLCHoklch(63.23% 0.195 310.9)
XYZxyz(35.0882, 22.6268, 72.3167)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FDF #8FDF5F
analogous
#6F5FDF #AF5FDF #DF5FCF
triadic
#AF5FDF #DFAF5F #5FDFAF
tetradic
#AF5FDF #DF6F5F #8FDF5F #5FCFDF
square
#AF5FDF #DF6F5F #8FDF5F #5FCFDF
split-complementary
#AF5FDF #CFDF5F #5FDF6F
monochromatic
#7221A3 #962CD5 #AF5FDF #C992E9 #E2C5F3

Accessibility & contrast

On white

3.80
#AF5FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AF5FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FDF
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FDF#FFFFFF#000000##000000
##AF5FDF1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#347FE3
Deuteranopia (green-blind)
#5484DC
Tritanopia (blue-blind)
#A97696
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5fdf;
/* rgb */ color: rgb(175, 95, 223);
/* oklch */ color: oklch(63.2% 0.195 310.9);
Tailwind
colors: {
  custom: {
    50: '#ca90e9',
    500: '#af5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #af5fdf;
$custom-light: #ca90e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fdf",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 277.5,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63233,
    "c": 0.19548,
    "h": 310.9
  },
  "luminance": 0.22626
}

Semantic roles & 50–950 ramp

primary
#AF5FDF
secondary
#C7E4B6
accent
#CF175C
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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