#AF5EA2#AF5EA2

#AF5EA2 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 59.9% C 0.136 H 333.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF5EA2
RGBrgb(175, 94, 162)
HSLhsl(310, 34%, 53%)
HSVhsv(310, 46%, 69%)
CMYKcmyk(0%, 46.3%, 7.4%, 31.4%)
CIE-LABlab(51.53, 42.42, -22.50)
CIE-LCHlch(51.53, 48.02, 332.06°)
OKLaboklab(59.94% 0.1216 -0.0609)
OKLCHoklch(59.94% 0.136 333.4)
XYZxyz(28.2034, 19.7297, 36.4981)
Luminance0.1973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EA2 #5EAF6B
analogous
#945EAF #AF5EA2 #AF5E79
triadic
#AF5EA2 #A2AF5E #5EA2AF
tetradic
#AF5EA2 #AF945E #5EAF6B #5E79AF
square
#AF5EA2 #AF945E #5EAF6B #5E79AF
split-complementary
#AF5EA2 #79AF5E #5EAF94
monochromatic
#62315A #8B4580 #AF5EA2 #C387BA #D8B0D1

Accessibility & contrast

On white

4.25
#AF5EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF5EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EA2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EA2#FFFFFF#000000##000000
##AF5EA21.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D73A4
Deuteranopia (green-blind)
#737FA0
Tritanopia (blue-blind)
#B66378
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5ea2;
/* rgb */ color: rgb(175, 94, 162);
/* oklch */ color: oklch(59.9% 0.136 333.4);
Tailwind
colors: {
  custom: {
    50: '#c98ebd',
    500: '#af5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ea2;
$custom-light: #c98ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ea2",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 309.63,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59938,
    "c": 0.13598,
    "h": 333.4
  },
  "luminance": 0.19728
}

Semantic roles & 50–950 ramp

primary
#AF5EA2
secondary
#A3C6A8
accent
#CA6F5E
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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