#AF5EA6#AF5EA6

#AF5EA6 is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.1% C 0.140 H 331.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF5EA6
RGBrgb(175, 94, 166)
HSLhsl(307, 34%, 53%)
HSVhsv(307, 46%, 69%)
CMYKcmyk(0%, 46.3%, 5.1%, 31.4%)
CIE-LABlab(51.69, 43.13, -24.59)
CIE-LCHlch(51.69, 49.64, 330.31°)
OKLaboklab(60.11% 0.1225 -0.0668)
OKLCHoklch(60.11% 0.14 331.4)
XYZxyz(28.5646, 19.8742, 38.4005)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EA6 #5EAF67
analogous
#905EAF #AF5EA6 #AF5E7D
triadic
#AF5EA6 #A6AF5E #5EA6AF
tetradic
#AF5EA6 #AF905E #5EAF67 #5E7DAF
square
#AF5EA6 #AF905E #5EAF67 #5E7DAF
split-complementary
#AF5EA6 #7DAF5E #5EAF90
monochromatic
#62315C #8B4583 #AF5EA6 #C387BD #D8B0D3

Accessibility & contrast

On white

4.22
#AF5EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF5EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EA6
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EA6#FFFFFF#000000##000000
##AF5EA61.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B74A8
Deuteranopia (green-blind)
#727FA4
Tritanopia (blue-blind)
#B5647A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5ea6;
/* rgb */ color: rgb(175, 94, 166);
/* oklch */ color: oklch(60.1% 0.140 331.4);
Tailwind
colors: {
  custom: {
    50: '#c98ec0',
    500: '#af5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #af5ea6;
$custom-light: #c98ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ea6",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 306.667,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60115,
    "c": 0.13952,
    "h": 331.4
  },
  "luminance": 0.19873
}

Semantic roles & 50–950 ramp

primary
#AF5EA6
secondary
#A3C6A7
accent
#CA6A5E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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