#AF5AFF#AF5AFF

#AF5AFF is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.6% C 0.236 H 304.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF5AFF
RGBrgb(175, 90, 255)
HSLhsl(271, 100%, 68%)
HSVhsv(271, 65%, 100%)
CMYKcmyk(31.4%, 64.7%, 0%, 0%)
CIE-LABlab(55.73, 63.56, -68.82)
CIE-LCHlch(55.73, 93.68, 312.73°)
OKLaboklab(64.61% 0.1326 -0.1953)
OKLCHoklch(64.61% 0.236 304.2)
XYZxyz(39.3813, 23.6464, 97.0779)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AFF #AAFF5A
analogous
#5C5AFF #AF5AFF #FF5AFD
triadic
#AF5AFF #FFAF5A #5AFFAF
tetradic
#AF5AFF #FF5C5A #AAFF5A #5AFDFF
square
#AF5AFF #FF5C5A #AAFF5A #5AFDFF
split-complementary
#AF5AFF #FDFF5A #5AFF5C
monochromatic
#7300DF #911DFF #AF5AFF #CD97FF #EAD4FF

Accessibility & contrast

On white

3.67
#AF5AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#AF5AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AFF
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AFF#FFFFFF#000000##000000
##AF5AFF1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#2485FB
Tritanopia (blue-blind)
#A07EA5
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5aff;
/* rgb */ color: rgb(175, 90, 255);
/* oklch */ color: oklch(64.6% 0.236 304.2);
Tailwind
colors: {
  custom: {
    50: '#cc8eff',
    500: '#af5aff',
    950: '#000000',
  },
}
SCSS
$custom: #af5aff;
$custom-light: #cc8eff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aff",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 255
  },
  "hsl": {
    "h": 270.909,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.64613,
    "c": 0.23606,
    "h": 304.2
  },
  "luminance": 0.23646
}

Semantic roles & 50–950 ramp

primary
#AF5AFF
secondary
#DAF4C1
accent
#E6006F
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #AF5AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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