#AF3CAF#AF3CAF

#AF3CAF is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.2% C 0.199 H 327.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF3CAF
RGBrgb(175, 60, 175)
HSLhsl(300, 49%, 46%)
HSVhsv(300, 66%, 69%)
CMYKcmyk(0%, 65.7%, 0%, 31.4%)
CIE-LABlab(46.23, 60.56, -38.41)
CIE-LCHlch(46.23, 71.72, 327.62°)
OKLaboklab(56.24% 0.1688 -0.1062)
OKLCHoklch(56.24% 0.199 327.8)
XYZxyz(27.0325, 15.4427, 42.1060)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CAF #3CAF3C
analogous
#753CAF #AF3CAF #AF3C75
triadic
#AF3CAF #AFAF3C #3CAFAF
tetradic
#AF3CAF #AF753C #3CAF3C #3C75AF
square
#AF3CAF #AF753C #3CAF3C #3C75AF
split-complementary
#AF3CAF #75AF3C #3CAF75
monochromatic
#541D54 #812C81 #AF3CAF #C860C8 #D88DD8

Accessibility & contrast

On white

5.14
#AF3CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF3CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CAF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CAF#FFFFFF#000000##FFFFFF
##AF3CAF1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#B44C70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3caf;
/* rgb */ color: rgb(175, 60, 175);
/* oklch */ color: oklch(56.2% 0.199 327.8);
Tailwind
colors: {
  custom: {
    50: '#ca7bc7',
    500: '#af3caf',
    950: '#000000',
  },
}
SCSS
$custom: #af3caf;
$custom-light: #ca7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3caf",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56243,
    "c": 0.19942,
    "h": 327.8
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#AF3CAF
secondary
#84C384
accent
#D84F4F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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