#AF5FA2#AF5FA2

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

Color values

HEX#AF5FA2
RGBrgb(175, 95, 162)
HSLhsl(310, 33%, 53%)
HSVhsv(310, 46%, 69%)
CMYKcmyk(0%, 45.7%, 7.4%, 31.4%)
CIE-LABlab(51.73, 41.89, -22.19)
CIE-LCHlch(51.73, 47.40, 332.09°)
OKLaboklab(60.09% 0.1201 -0.0601)
OKLCHoklch(60.09% 0.134 333.4)
XYZxyz(28.2929, 19.9087, 36.5279)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FA2 #5FAF6C
analogous
#945FAF #AF5FA2 #AF5F7A
triadic
#AF5FA2 #A2AF5F #5FA2AF
tetradic
#AF5FA2 #AF945F #5FAF6C #5F7AAF
square
#AF5FA2 #AF945F #5FAF6C #5F7AAF
split-complementary
#AF5FA2 #7AAF5F #5FAF94
monochromatic
#62315A #8B4680 #AF5FA2 #C388BA #D8B1D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5FA2#FFFFFF#000000##000000
##AF5FA21.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)
#5E74A4
Deuteranopia (green-blind)
#7480A0
Tritanopia (blue-blind)
#B56479
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5fa2;
/* rgb */ color: rgb(175, 95, 162);
/* oklch */ color: oklch(60.1% 0.134 333.4);
Tailwind
colors: {
  custom: {
    50: '#c88fbd',
    500: '#af5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #af5fa2;
$custom-light: #c88fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fa2",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 309.75,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6009,
    "c": 0.13424,
    "h": 333.4
  },
  "luminance": 0.19907
}

Semantic roles & 50–950 ramp

primary
#AF5FA2
secondary
#A4C6A9
accent
#C9705E
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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