#AF5EAA#AF5EAA

#AF5EAA is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.3% C 0.143 H 329.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF5EAA
RGBrgb(175, 94, 170)
HSLhsl(304, 34%, 53%)
HSVhsv(304, 46%, 69%)
CMYKcmyk(0%, 46.3%, 2.9%, 31.4%)
CIE-LABlab(51.86, 43.85, -26.67)
CIE-LCHlch(51.86, 51.32, 328.69°)
OKLaboklab(60.3% 0.1233 -0.0727)
OKLCHoklch(60.3% 0.143 329.5)
XYZxyz(28.9372, 20.0232, 40.3631)
Luminance0.2002 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EAA #5EAF63
analogous
#8C5EAF #AF5EAA #AF5E81
triadic
#AF5EAA #AAAF5E #5EAAAF
tetradic
#AF5EAA #AF8C5E #5EAF63 #5E81AF
square
#AF5EAA #AF8C5E #5EAF63 #5E81AF
split-complementary
#AF5EAA #81AF5E #5EAF8C
monochromatic
#62315F #8B4587 #AF5EAA #C387C0 #D8B0D5

Accessibility & contrast

On white

4.20
#AF5EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AF5EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EAA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EAA#FFFFFF#000000##000000
##AF5EAA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5975AD
Deuteranopia (green-blind)
#7080A8
Tritanopia (blue-blind)
#B4657C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5eaa;
/* rgb */ color: rgb(175, 94, 170);
/* oklch */ color: oklch(60.3% 0.143 329.5);
Tailwind
colors: {
  custom: {
    50: '#c98ec3',
    500: '#af5eaa',
    950: '#000000',
  },
}
SCSS
$custom: #af5eaa;
$custom-light: #c98ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5eaa",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 303.704,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60296,
    "c": 0.14317,
    "h": 329.5
  },
  "luminance": 0.20022
}

Semantic roles & 50–950 ramp

primary
#AF5EAA
secondary
#A3C6A5
accent
#CA655E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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