#AF5FA8#AF5FA8

#AF5FA8 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.4% C 0.140 H 330.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF5FA8
RGBrgb(175, 95, 168)
HSLhsl(305, 33%, 53%)
HSVhsv(305, 46%, 69%)
CMYKcmyk(0%, 45.7%, 4%, 31.4%)
CIE-LABlab(51.98, 42.96, -25.32)
CIE-LCHlch(51.98, 49.87, 329.49°)
OKLaboklab(60.36% 0.1214 -0.0689)
OKLCHoklch(60.36% 0.14 330.4)
XYZxyz(28.8390, 20.1271, 39.4041)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FA8 #5FAF66
analogous
#8E5FAF #AF5FA8 #AF5F80
triadic
#AF5FA8 #A8AF5F #5FA8AF
tetradic
#AF5FA8 #AF8E5F #5FAF66 #5F80AF
square
#AF5FA8 #AF8E5F #5FAF66 #5F80AF
split-complementary
#AF5FA8 #80AF5F #5FAF8E
monochromatic
#62315E #8B4685 #AF5FA8 #C388BE #D8B1D4

Accessibility & contrast

On white

4.18
#AF5FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF5FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FA8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FA8#FFFFFF#000000##000000
##AF5FA81.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B75AB
Deuteranopia (green-blind)
#7180A6
Tritanopia (blue-blind)
#B5657C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5fa8;
/* rgb */ color: rgb(175, 95, 168);
/* oklch */ color: oklch(60.4% 0.140 330.4);
Tailwind
colors: {
  custom: {
    50: '#c88fc2',
    500: '#af5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #af5fa8;
$custom-light: #c88fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fa8",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 305.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60355,
    "c": 0.1396,
    "h": 330.4
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#AF5FA8
secondary
#A4C6A7
accent
#C9685E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130D12
muted
#827D81

Preview Lab

Preview with #AF5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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