#AF5FC0#AF5FC0

#AF5FC0 is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.5% C 0.163 H 320.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF5FC0
RGBrgb(175, 95, 192)
HSLhsl(289, 43%, 56%)
HSVhsv(289, 51%, 75%)
CMYKcmyk(8.9%, 50.5%, 0%, 24.7%)
CIE-LABlab(53.06, 47.53, -37.54)
CIE-LCHlch(53.06, 60.57, 321.70°)
OKLaboklab(61.52% 0.1256 -0.1039)
OKLCHoklch(61.52% 0.163 320.4)
XYZxyz(31.2847, 21.1054, 52.2848)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FC0 #70C05F
analogous
#7F5FC0 #AF5FC0 #C05FA1
triadic
#AF5FC0 #C0AF5F #5FC0AF
tetradic
#AF5FC0 #C07F5F #70C05F #5FA1C0
square
#AF5FC0 #C07F5F #70C05F #5FA1C0
split-complementary
#AF5FC0 #A1C05F #5FC07F
monochromatic
#6A2F76 #9140A2 #AF5FC0 #C58BD1 #DBB7E3

Accessibility & contrast

On white

4.02
#AF5FC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AF5FC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FC0
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FC0#FFFFFF#000000##000000
##AF5FC01.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F79C3
Deuteranopia (green-blind)
#6782BD
Tritanopia (blue-blind)
#B06C87
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5fc0;
/* rgb */ color: rgb(175, 95, 192);
/* oklch */ color: oklch(61.5% 0.163 320.4);
Tailwind
colors: {
  custom: {
    50: '#c98fd3',
    500: '#af5fc0',
    950: '#000000',
  },
}
SCSS
$custom: #af5fc0;
$custom-light: #c98fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fc0",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 289.485,
    "s": 43.498,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61515,
    "c": 0.16298,
    "h": 320.4
  },
  "luminance": 0.21104
}

Semantic roles & 50–950 ramp

primary
#AF5FC0
secondary
#B0D1A9
accent
#D3556B
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#130D14
muted
#827E83

Preview Lab

Preview with #AF5FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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