#AF4DFF#AF4DFF

#AF4DFF is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 63.1% C 0.252 H 305.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF4DFF
RGBrgb(175, 77, 255)
HSLhsl(273, 100%, 65%)
HSVhsv(273, 70%, 100%)
CMYKcmyk(31.4%, 69.8%, 0%, 0%)
CIE-LABlab(53.65, 69.37, -72.19)
CIE-LCHlch(53.65, 100.12, 313.86°)
OKLaboklab(63.12% 0.1458 -0.2052)
OKLCHoklch(63.12% 0.252 305.4)
XYZxyz(38.3791, 21.6420, 96.7438)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DFF #9DFF4D
analogous
#564DFF #AF4DFF #FF4DF6
triadic
#AF4DFF #FFAF4D #4DFFAF
tetradic
#AF4DFF #FF564D #9DFF4D #4DF6FF
square
#AF4DFF #FF564D #9DFF4D #4DF6FF
split-complementary
#AF4DFF #F6FF4D #4DFF56
monochromatic
#7300D2 #9310FF #AF4DFF #CB8AFF #E6C7FF

Accessibility & contrast

On white

3.94
#AF4DFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AF4DFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DFF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DFF#FFFFFF#000000##000000
##AF4DFF1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#0080FB
Tritanopia (blue-blind)
#A077A1
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af4dff;
/* rgb */ color: rgb(175, 77, 255);
/* oklch */ color: oklch(63.1% 0.252 305.4);
Tailwind
colors: {
  custom: {
    50: '#cd86ff',
    500: '#af4dff',
    950: '#000000',
  },
}
SCSS
$custom: #af4dff;
$custom-light: #cd86ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dff",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 255
  },
  "hsl": {
    "h": 273.034,
    "s": 100,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6312,
    "c": 0.25167,
    "h": 305.4
  },
  "luminance": 0.21642
}

Semantic roles & 50–950 ramp

primary
#AF4DFF
secondary
#D1F2B6
accent
#E60067
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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