#AF5EC9#AF5EC9

#AF5EC9 is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.8% C 0.174 H 317.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF5EC9
RGBrgb(175, 94, 201)
HSLhsl(285, 50%, 58%)
HSVhsv(285, 53%, 79%)
CMYKcmyk(12.9%, 53.2%, 0%, 21.2%)
CIE-LABlab(53.32, 49.86, -42.30)
CIE-LCHlch(53.32, 65.39, 319.69°)
OKLaboklab(61.85% 0.1279 -0.1177)
OKLCHoklch(61.85% 0.174 317.4)
XYZxyz(32.2230, 21.3375, 57.6682)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EC9 #78C95E
analogous
#7A5EC9 #AF5EC9 #C95EAD
triadic
#AF5EC9 #C9AF5E #5EC9AF
tetradic
#AF5EC9 #C97A5E #78C95E #5EADC9
square
#AF5EC9 #C97A5E #78C95E #5EADC9
split-complementary
#AF5EC9 #ADC95E #5EC97A
monochromatic
#6C2B81 #933BAF #AF5EC9 #C68CD8 #DDBAE8

Accessibility & contrast

On white

3.99
#AF5EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#AF5EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EC9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EC9#FFFFFF#000000##000000
##AF5EC91.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACD
Deuteranopia (green-blind)
#6182C6
Tritanopia (blue-blind)
#AE6E8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5ec9;
/* rgb */ color: rgb(175, 94, 201);
/* oklch */ color: oklch(61.8% 0.174 317.4);
Tailwind
colors: {
  custom: {
    50: '#c98fda',
    500: '#af5ec9',
    950: '#000000',
  },
}
SCSS
$custom: #af5ec9;
$custom-light: #c98fda;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ec9",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 285.421,
    "s": 49.767,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.17385,
    "h": 317.4
  },
  "luminance": 0.21336
}

Semantic roles & 50–950 ramp

primary
#AF5EC9
secondary
#B6D7AC
accent
#D94F70
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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