#AF5CD8#AF5CD8

#AF5CD8 is a light, vivid purple. Relative luminance 0.217; OKLCH L 62.4% C 0.193 H 313.1°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF5CD8
RGBrgb(175, 92, 216)
HSLhsl(280, 61%, 60%)
HSVhsv(280, 57%, 85%)
CMYKcmyk(19%, 57.4%, 0%, 15.3%)
CIE-LABlab(53.74, 54.00, -50.18)
CIE-LCHlch(53.74, 73.71, 317.10°)
OKLaboklab(62.41% 0.1315 -0.1407)
OKLCHoklch(62.41% 0.193 313.1)
XYZxyz(33.8989, 21.7270, 67.3604)
Luminance0.2173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CD8 #85D85C
analogous
#715CD8 #AF5CD8 #D85CC3
triadic
#AF5CD8 #D8AF5C #5CD8AF
tetradic
#AF5CD8 #D8715C #85D85C #5CC3D8
square
#AF5CD8 #D8715C #85D85C #5CC3D8
split-complementary
#AF5CD8 #C3D85C #5CD871
monochromatic
#702496 #9530C7 #AF5CD8 #C78DE4 #DFBFF0

Accessibility & contrast

On white

3.93
#AF5CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AF5CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CD8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CD8#FFFFFF#000000##000000
##AF5CD81.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#367CDC
Deuteranopia (green-blind)
#5682D5
Tritanopia (blue-blind)
#AB7291
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5cd8;
/* rgb */ color: rgb(175, 92, 216);
/* oklch */ color: oklch(62.4% 0.193 313.1);
Tailwind
colors: {
  custom: {
    50: '#ca8ee4',
    500: '#af5cd8',
    950: '#000000',
  },
}
SCSS
$custom: #af5cd8;
$custom-light: #ca8ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cd8",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 280.161,
    "s": 61.386,
    "l": 60.392
  },
  "oklch": {
    "l": 0.62413,
    "c": 0.19255,
    "h": 313.1
  },
  "luminance": 0.21726
}

Semantic roles & 50–950 ramp

primary
#AF5CD8
secondary
#C0E0B0
accent
#C91C56
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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