#AF5EA8#AF5EA8

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

Color values

HEX#AF5EA8
RGBrgb(175, 94, 168)
HSLhsl(305, 34%, 53%)
HSVhsv(305, 46%, 69%)
CMYKcmyk(0%, 46.3%, 4%, 31.4%)
CIE-LABlab(51.78, 43.49, -25.63)
CIE-LCHlch(51.78, 50.48, 329.49°)
OKLaboklab(60.21% 0.1229 -0.0698)
OKLCHoklch(60.21% 0.141 330.4)
XYZxyz(28.7495, 19.9481, 39.3743)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EA8 #5EAF65
analogous
#8D5EAF #AF5EA8 #AF5E7F
triadic
#AF5EA8 #A8AF5E #5EA8AF
tetradic
#AF5EA8 #AF8D5E #5EAF65 #5E7FAF
square
#AF5EA8 #AF8D5E #5EAF65 #5E7FAF
split-complementary
#AF5EA8 #7FAF5E #5EAF8D
monochromatic
#62315E #8B4585 #AF5EA8 #C387BE #D8B0D4

Accessibility & contrast

On white

4.21
#AF5EA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF5EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EA8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EA8#FFFFFF#000000##000000
##AF5EA81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af5ea8;
/* rgb */ color: rgb(175, 94, 168);
/* oklch */ color: oklch(60.2% 0.141 330.4);
Tailwind
colors: {
  custom: {
    50: '#c98ec2',
    500: '#af5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #af5ea8;
$custom-light: #c98ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ea8",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 305.185,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60205,
    "c": 0.14133,
    "h": 330.4
  },
  "luminance": 0.19947
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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