#AF5FF2#AF5FF2

#AF5FF2 is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.4% C 0.216 H 306.3°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF5FF2
RGBrgb(175, 95, 242)
HSLhsl(273, 85%, 66%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(27.7%, 60.7%, 0%, 5.1%)
CIE-LABlab(55.80, 58.21, -61.50)
CIE-LCHlch(55.80, 84.68, 313.43°)
OKLaboklab(64.4% 0.1278 -0.1738)
OKLCHoklch(64.4% 0.216 306.3)
XYZxyz(37.7950, 23.7095, 86.5725)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FF2 #A2F25F
analogous
#655FF2 #AF5FF2 #F25FEB
triadic
#AF5FF2 #F2AF5F #5FF2AF
tetradic
#AF5FF2 #F2655F #A2F25F #5FEBF2
square
#AF5FF2 #F2655F #A2F25F #5FEBF2
split-complementary
#AF5FF2 #EBF25F #5FF265
monochromatic
#7310C6 #9326ED #AF5FF2 #CB98F7 #E8D0FB

Accessibility & contrast

On white

3.66
#AF5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#AF5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FF2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FF2#FFFFFF#000000##000000
##AF5FF21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C83F7
Deuteranopia (green-blind)
#4186EF
Tritanopia (blue-blind)
#A47DA0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ff2;
/* rgb */ color: rgb(175, 95, 242);
/* oklch */ color: oklch(64.4% 0.216 306.3);
Tailwind
colors: {
  custom: {
    50: '#cb90f7',
    500: '#af5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ff2;
$custom-light: #cb90f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ff2",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 272.653,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64398,
    "c": 0.21576,
    "h": 306.3
  },
  "luminance": 0.23709
}

Semantic roles & 50–950 ramp

primary
#AF5FF2
secondary
#D4EFBE
accent
#E10469
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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