#AF5FD7#AF5FD7

#AF5FD7 is a light, vivid purple. Relative luminance 0.222; OKLCH L 62.8% C 0.187 H 313.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF5FD7
RGBrgb(175, 95, 215)
HSLhsl(280, 60%, 61%)
HSVhsv(280, 56%, 84%)
CMYKcmyk(18.6%, 55.8%, 0%, 15.7%)
CIE-LABlab(54.24, 52.28, -48.81)
CIE-LCHlch(54.24, 71.52, 316.97°)
OKLaboklab(62.77% 0.1276 -0.1367)
OKLCHoklch(62.77% 0.187 313)
XYZxyz(34.0350, 22.2056, 66.7700)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FD7 #87D75F
analogous
#735FD7 #AF5FD7 #D75FC3
triadic
#AF5FD7 #D7AF5F #5FD7AF
tetradic
#AF5FD7 #D7735F #87D75F #5FC3D7
square
#AF5FD7 #D7735F #87D75F #5FC3D7
split-complementary
#AF5FD7 #C3D75F #5FD773
monochromatic
#712696 #9532C7 #AF5FD7 #C790E3 #E0C1EF

Accessibility & contrast

On white

3.86
#AF5FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF5FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FD7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FD7#FFFFFF#000000##000000
##AF5FD71.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7DDB
Deuteranopia (green-blind)
#5984D4
Tritanopia (blue-blind)
#AB7492
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5fd7;
/* rgb */ color: rgb(175, 95, 215);
/* oklch */ color: oklch(62.8% 0.187 313.0);
Tailwind
colors: {
  custom: {
    50: '#ca90e4',
    500: '#af5fd7',
    950: '#000000',
  },
}
SCSS
$custom: #af5fd7;
$custom-light: #ca90e4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fd7",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62767,
    "c": 0.18698,
    "h": 313
  },
  "luminance": 0.22205
}

Semantic roles & 50–950 ramp

primary
#AF5FD7
secondary
#C1E0B2
accent
#C81E56
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#130D15
muted
#827E84

Preview Lab

Preview with #AF5FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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