#AF4DE1#AF4DE1

#AF4DE1 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.1% C 0.222 H 312.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF4DE1
RGBrgb(175, 77, 225)
HSLhsl(280, 71%, 59%)
HSVhsv(280, 66%, 88%)
CMYKcmyk(22.2%, 65.8%, 0%, 11.8%)
CIE-LABlab(51.68, 62.95, -58.57)
CIE-LCHlch(51.68, 85.99, 317.06°)
OKLaboklab(61.09% 0.1491 -0.1651)
OKLCHoklch(61.09% 0.222 312.1)
XYZxyz(33.9212, 19.8588, 73.2658)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DE1 #7FE14D
analogous
#654DE1 #AF4DE1 #E14DC9
triadic
#AF4DE1 #E1AF4D #4DE1AF
tetradic
#AF4DE1 #E1654D #7FE14D #4DC9E1
square
#AF4DE1 #E1654D #7FE14D #4DC9E1
split-complementary
#AF4DE1 #C9E14D #4DE165
monochromatic
#6F1A9A #9423CE #AF4DE1 #C781EA #DEB6F3

Accessibility & contrast

On white

4.22
#AF4DE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF4DE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DE1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DE1#FFFFFF#000000##000000
##AF4DE11.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#3F7DDE
Tritanopia (blue-blind)
#A96B91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4de1;
/* rgb */ color: rgb(175, 77, 225);
/* oklch */ color: oklch(61.1% 0.222 312.1);
Tailwind
colors: {
  custom: {
    50: '#cb85eb',
    500: '#af4de1',
    950: '#000000',
  },
}
SCSS
$custom: #af4de1;
$custom-light: #cb85eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4de1",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 225
  },
  "hsl": {
    "h": 279.73,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.22248,
    "h": 312.1
  },
  "luminance": 0.19858
}

Semantic roles & 50–950 ramp

primary
#AF4DE1
secondary
#BCE2A8
accent
#EE3A77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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