#AF5CFF#AF5CFF

#AF5CFF is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 64.9% C 0.234 H 304.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF5CFF
RGBrgb(175, 92, 255)
HSLhsl(271, 100%, 68%)
HSVhsv(271, 64%, 100%)
CMYKcmyk(31.4%, 63.9%, 0%, 0%)
CIE-LABlab(56.08, 62.62, -68.26)
CIE-LCHlch(56.08, 92.63, 312.53°)
OKLaboklab(64.86% 0.1305 -0.1937)
OKLCHoklch(64.86% 0.234 304)
XYZxyz(39.5523, 23.9884, 97.1349)
Luminance0.2399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CFF #ACFF5C
analogous
#5D5CFF #AF5CFF #FF5CFE
triadic
#AF5CFF #FFAF5C #5CFFAF
tetradic
#AF5CFF #FF5D5C #ACFF5C #5CFEFF
square
#AF5CFF #FF5D5C #ACFF5C #5CFEFF
split-complementary
#AF5CFF #FEFF5C #5CFF5D
monochromatic
#7200E1 #911FFF #AF5CFF #CD99FF #EBD6FF

Accessibility & contrast

On white

3.62
#AF5CFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#AF5CFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CFF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CFF#FFFFFF#000000##000000
##AF5CFF1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#2886FB
Tritanopia (blue-blind)
#A07FA6
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5cff;
/* rgb */ color: rgb(175, 92, 255);
/* oklch */ color: oklch(64.9% 0.234 304.0);
Tailwind
colors: {
  custom: {
    50: '#cc8fff',
    500: '#af5cff',
    950: '#000000',
  },
}
SCSS
$custom: #af5cff;
$custom-light: #cc8fff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cff",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 255
  },
  "hsl": {
    "h": 270.552,
    "s": 100,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6486,
    "c": 0.23351,
    "h": 304
  },
  "luminance": 0.23988
}

Semantic roles & 50–950 ramp

primary
#AF5CFF
secondary
#DBF4C2
accent
#E60071
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #AF5CFF

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

Preview Lab → · Contrast checker → · Palette generator →

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