#AF5DF6#AF5DF6

#AF5DF6 is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.4% C 0.223 H 305.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF5DF6
RGBrgb(175, 93, 246)
HSLhsl(272, 89%, 66%)
HSVhsv(272, 62%, 96%)
CMYKcmyk(28.9%, 62.2%, 0%, 3.5%)
CIE-LABlab(55.68, 60.09, -63.91)
CIE-LCHlch(55.68, 87.72, 313.24°)
OKLaboklab(64.39% 0.13 -0.1809)
OKLCHoklch(64.39% 0.223 305.7)
XYZxyz(38.2245, 23.5968, 89.7118)
Luminance0.2360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DF6 #A4F65D
analogous
#635DF6 #AF5DF6 #F65DF1
triadic
#AF5DF6 #F6AF5D #5DF6AF
tetradic
#AF5DF6 #F6635D #A4F65D #5DF1F6
square
#AF5DF6 #F6635D #A4F65D #5DF1F6
split-complementary
#AF5DF6 #F1F65D #5DF663
monochromatic
#730BCD #9223F3 #AF5DF6 #CC97F9 #E8D1FC

Accessibility & contrast

On white

3.67
#AF5DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#AF5DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DF6
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DF6#FFFFFF#000000##000000
##AF5DF61.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FB
Deuteranopia (green-blind)
#3986F3
Tritanopia (blue-blind)
#A37DA1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5df6;
/* rgb */ color: rgb(175, 93, 246);
/* oklch */ color: oklch(64.4% 0.223 305.7);
Tailwind
colors: {
  custom: {
    50: '#cb8ffa',
    500: '#af5df6',
    950: '#000000',
  },
}
SCSS
$custom: #af5df6;
$custom-light: #cb8ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#af5df6",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 246
  },
  "hsl": {
    "h": 272.157,
    "s": 89.474,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64394,
    "c": 0.22273,
    "h": 305.7
  },
  "luminance": 0.23596
}

Semantic roles & 50–950 ramp

primary
#AF5DF6
secondary
#D6F0BF
accent
#E6006A
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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