#AF3FAF#AF3FAF

#AF3FAF is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.196 H 327.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF3FAF
RGBrgb(175, 63, 175)
HSLhsl(300, 47%, 47%)
HSVhsv(300, 64%, 69%)
CMYKcmyk(0%, 64%, 0%, 31.4%)
CIE-LABlab(46.67, 59.36, -37.73)
CIE-LCHlch(46.67, 70.33, 327.56°)
OKLaboklab(56.56% 0.1654 -0.1042)
OKLCHoklch(56.56% 0.196 327.8)
XYZxyz(27.1942, 15.7659, 42.1599)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FAF #3FAF3F
analogous
#773FAF #AF3FAF #AF3F77
triadic
#AF3FAF #AFAF3F #3FAFAF
tetradic
#AF3FAF #AF773F #3FAF3F #3F77AF
square
#AF3FAF #AF773F #3FAF3F #3F77AF
split-complementary
#AF3FAF #77AF3F #3FAF77
monochromatic
#551F55 #822F82 #AF3FAF #C764C7 #D791D7

Accessibility & contrast

On white

5.06
#AF3FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF3FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FAF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FAF#FFFFFF#000000##FFFFFF
##AF3FAF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B2
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#B44E71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af3faf;
/* rgb */ color: rgb(175, 63, 175);
/* oklch */ color: oklch(56.6% 0.196 327.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cc7',
    500: '#af3faf',
    950: '#000000',
  },
}
SCSS
$custom: #af3faf;
$custom-light: #ca7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3faf",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56555,
    "c": 0.1955,
    "h": 327.8
  },
  "luminance": 0.15764
}

Semantic roles & 50–950 ramp

primary
#AF3FAF
secondary
#87C387
accent
#D75151
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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