#AF4FD5#AF4FD5

#AF4FD5 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.6% C 0.208 H 315.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF4FD5
RGBrgb(175, 79, 213)
HSLhsl(283, 61%, 57%)
HSVhsv(283, 63%, 84%)
CMYKcmyk(17.8%, 62.9%, 0%, 16.5%)
CIE-LABlab(51.28, 59.58, -52.40)
CIE-LCHlch(51.28, 79.34, 318.67°)
OKLaboklab(60.57% 0.1473 -0.1471)
OKLCHoklch(60.57% 0.208 315.1)
XYZxyz(32.4835, 19.5111, 64.9928)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FD5 #75D54F
analogous
#6C4FD5 #AF4FD5 #D54FB8
triadic
#AF4FD5 #D5AF4F #4FD5AF
tetradic
#AF4FD5 #D56C4F #75D54F #4FB8D5
square
#AF4FD5 #D56C4F #75D54F #4FB8D5
split-complementary
#AF4FD5 #B8D54F #4FD56C
monochromatic
#6B2189 #922CBA #AF4FD5 #C580E1 #DCB2ED

Accessibility & contrast

On white

4.28
#AF4FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF4FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FD5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FD5#FFFFFF#000000##000000
##AF4FD51.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B75D9
Deuteranopia (green-blind)
#4C7DD2
Tritanopia (blue-blind)
#AC688B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4fd5;
/* rgb */ color: rgb(175, 79, 213);
/* oklch */ color: oklch(60.6% 0.208 315.1);
Tailwind
colors: {
  custom: {
    50: '#ca86e2',
    500: '#af4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #af4fd5;
$custom-light: #ca86e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fd5",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 282.985,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60572,
    "c": 0.20816,
    "h": 315.1
  },
  "luminance": 0.1951
}

Semantic roles & 50–950 ramp

primary
#AF4FD5
secondary
#B4DBA5
accent
#E54371
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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