#AF3EAF#AF3EAF

#AF3EAF is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.197 H 327.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF3EAF
RGBrgb(175, 62, 175)
HSLhsl(300, 48%, 46%)
HSVhsv(300, 65%, 69%)
CMYKcmyk(0%, 64.6%, 0%, 31.4%)
CIE-LABlab(46.52, 59.76, -37.96)
CIE-LCHlch(46.52, 70.80, 327.58°)
OKLaboklab(56.45% 0.1666 -0.1049)
OKLCHoklch(56.45% 0.197 327.8)
XYZxyz(27.1393, 15.6562, 42.1416)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EAF #3EAF3E
analogous
#773EAF #AF3EAF #AF3E77
triadic
#AF3EAF #AFAF3E #3EAFAF
tetradic
#AF3EAF #AF773E #3EAF3E #3E77AF
square
#AF3EAF #AF773E #3EAF3E #3E77AF
split-complementary
#AF3EAF #77AF3E #3EAF77
monochromatic
#551E55 #822E82 #AF3EAF #C863C8 #D890D8

Accessibility & contrast

On white

5.08
#AF3EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AF3EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EAF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EAF#FFFFFF#000000##FFFFFF
##AF3EAF1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#5A73AC
Tritanopia (blue-blind)
#B44D71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3eaf;
/* rgb */ color: rgb(175, 62, 175);
/* oklch */ color: oklch(56.4% 0.197 327.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cc7',
    500: '#af3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #af3eaf;
$custom-light: #ca7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3eaf",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56449,
    "c": 0.19683,
    "h": 327.8
  },
  "luminance": 0.15654
}

Semantic roles & 50–950 ramp

primary
#AF3EAF
secondary
#86C386
accent
#D75151
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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