#AF5FCF#AF5FCF

#AF5FCF is a light, vivid purple. Relative luminance 0.218; OKLCH L 62.3% C 0.179 H 315.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF5FCF
RGBrgb(175, 95, 207)
HSLhsl(283, 54%, 59%)
HSVhsv(283, 54%, 81%)
CMYKcmyk(15.5%, 54.1%, 0%, 18.8%)
CIE-LABlab(53.82, 50.59, -44.94)
CIE-LCHlch(53.82, 67.67, 318.39°)
OKLaboklab(62.32% 0.1271 -0.1254)
OKLCHoklch(62.32% 0.179 315.4)
XYZxyz(33.0321, 21.8044, 61.4880)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FCF #7FCF5F
analogous
#775FCF #AF5FCF #CF5FB7
triadic
#AF5FCF #CFAF5F #5FCFAF
tetradic
#AF5FCF #CF775F #7FCF5F #5FB7CF
square
#AF5FCF #CF775F #7FCF5F #5FB7CF
split-complementary
#AF5FCF #B7CF5F #5FCF77
monochromatic
#6F298A #9438B9 #AF5FCF #C78EDD #DEBDEB

Accessibility & contrast

On white

3.92
#AF5FCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#AF5FCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FCF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FCF#FFFFFF#000000##000000
##AF5FCF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#447CD3
Deuteranopia (green-blind)
#5F83CC
Tritanopia (blue-blind)
#AD718E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5fcf;
/* rgb */ color: rgb(175, 95, 207);
/* oklch */ color: oklch(62.3% 0.179 315.4);
Tailwind
colors: {
  custom: {
    50: '#c990de',
    500: '#af5fcf',
    950: '#000000',
  },
}
SCSS
$custom: #af5fcf;
$custom-light: #c990de;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fcf",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 282.857,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62317,
    "c": 0.17853,
    "h": 315.4
  },
  "luminance": 0.21803
}

Semantic roles & 50–950 ramp

primary
#AF5FCF
secondary
#BCDBAF
accent
#DD4B74
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #AF5FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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