#AF5DF1#AF5DF1

#AF5DF1 is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.1% C 0.217 H 306.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF5DF1
RGBrgb(175, 93, 241)
HSLhsl(273, 84%, 65%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(27.4%, 61.4%, 0%, 5.5%)
CIE-LABlab(55.37, 58.97, -61.62)
CIE-LCHlch(55.37, 85.29, 313.74°)
OKLaboklab(64.07% 0.1302 -0.1742)
OKLCHoklch(64.07% 0.217 306.8)
XYZxyz(37.4674, 23.2939, 85.7244)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DF1 #9FF15D
analogous
#655DF1 #AF5DF1 #F15DE9
triadic
#AF5DF1 #F1AF5D #5DF1AF
tetradic
#AF5DF1 #F1655D #9FF15D #5DE9F1
square
#AF5DF1 #F1655D #9FF15D #5DE9F1
split-complementary
#AF5DF1 #E9F15D #5DF165
monochromatic
#7311C3 #9325EC #AF5DF1 #CB95F6 #E7CEFB

Accessibility & contrast

On white

3.71
#AF5DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#AF5DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DF1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DF1#FFFFFF#000000##000000
##AF5DF11.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0182F6
Deuteranopia (green-blind)
#4085EE
Tritanopia (blue-blind)
#A47B9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5df1;
/* rgb */ color: rgb(175, 93, 241);
/* oklch */ color: oklch(64.1% 0.217 306.8);
Tailwind
colors: {
  custom: {
    50: '#cb8ff6',
    500: '#af5df1',
    950: '#000000',
  },
}
SCSS
$custom: #af5df1;
$custom-light: #cb8ff6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5df1",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 241
  },
  "hsl": {
    "h": 273.243,
    "s": 84.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64073,
    "c": 0.21744,
    "h": 306.8
  },
  "luminance": 0.23294
}

Semantic roles & 50–950 ramp

primary
#AF5DF1
secondary
#D2EEBC
accent
#E10567
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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