#AF5EA7#AF5EA7

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

Color values

HEX#AF5EA7
RGBrgb(175, 94, 167)
HSLhsl(306, 34%, 53%)
HSVhsv(306, 46%, 69%)
CMYKcmyk(0%, 46.3%, 4.6%, 31.4%)
CIE-LABlab(51.74, 43.31, -25.11)
CIE-LCHlch(51.74, 50.06, 329.89°)
OKLaboklab(60.16% 0.1227 -0.0683)
OKLCHoklch(60.16% 0.14 330.9)
XYZxyz(28.6567, 19.9110, 38.8855)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EA7 #5EAF66
analogous
#8E5EAF #AF5EA7 #AF5E7E
triadic
#AF5EA7 #A7AF5E #5EA7AF
tetradic
#AF5EA7 #AF8E5E #5EAF66 #5E7EAF
square
#AF5EA7 #AF8E5E #5EAF66 #5E7EAF
split-complementary
#AF5EA7 #7EAF5E #5EAF8E
monochromatic
#62315D #8B4584 #AF5EA7 #C387BD #D8B0D4

Accessibility & contrast

On white

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

On black

4.98
#AF5EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EA7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EA7#FFFFFF#000000##000000
##AF5EA71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B74AA
Deuteranopia (green-blind)
#717FA5
Tritanopia (blue-blind)
#B5647B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5ea7;
/* rgb */ color: rgb(175, 94, 167);
/* oklch */ color: oklch(60.2% 0.140 330.9);
Tailwind
colors: {
  custom: {
    50: '#c98ec1',
    500: '#af5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #af5ea7;
$custom-light: #c98ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ea7",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 305.926,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6016,
    "c": 0.14042,
    "h": 330.9
  },
  "luminance": 0.19909
}

Semantic roles & 50–950 ramp

primary
#AF5EA7
secondary
#A3C6A6
accent
#CA695E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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