#AF5FE8#AF5FE8

#AF5FE8 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 63.8% C 0.205 H 308.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE8
RGBrgb(175, 95, 232)
HSLhsl(275, 75%, 64%)
HSVhsv(275, 59%, 91%)
CMYKcmyk(24.6%, 59.1%, 0%, 9%)
CIE-LABlab(55.20, 55.98, -56.86)
CIE-LCHlch(55.20, 79.79, 314.55°)
OKLaboklab(63.78% 0.128 -0.1602)
OKLCHoklch(63.78% 0.205 308.6)
XYZxyz(36.3340, 23.1251, 78.8778)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE8 #98E85F
analogous
#6B5FE8 #AF5FE8 #E85FDD
triadic
#AF5FE8 #E8AF5F #5FE8AF
tetradic
#AF5FE8 #E86B5F #98E85F #5FDDE8
square
#AF5FE8 #E86B5F #98E85F #5FDDE8
split-complementary
#AF5FE8 #DDE85F #5FE86B
monochromatic
#731AB3 #9429E0 #AF5FE8 #CA95F0 #E5CAF7

Accessibility & contrast

On white

3.73
#AF5FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#AF5FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE8#FFFFFF#000000##000000
##AF5FE81.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2781EC
Deuteranopia (green-blind)
#4C85E5
Tritanopia (blue-blind)
#A7799B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fe8;
/* rgb */ color: rgb(175, 95, 232);
/* oklch */ color: oklch(63.8% 0.205 308.6);
Tailwind
colors: {
  custom: {
    50: '#ca90f0',
    500: '#af5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe8;
$custom-light: #ca90f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe8",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 275.036,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63775,
    "c": 0.20508,
    "h": 308.6
  },
  "luminance": 0.23125
}

Semantic roles & 50–950 ramp

primary
#AF5FE8
secondary
#CDE9BA
accent
#D70E62
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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