#AF5FE9#AF5FE9

#AF5FE9 is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 63.8% C 0.206 H 308.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE9
RGBrgb(175, 95, 233)
HSLhsl(275, 76%, 64%)
HSVhsv(275, 59%, 91%)
CMYKcmyk(24.9%, 59.2%, 0%, 8.6%)
CIE-LABlab(55.26, 56.20, -57.33)
CIE-LCHlch(55.26, 80.28, 314.43°)
OKLaboklab(63.84% 0.128 -0.1616)
OKLCHoklch(63.84% 0.206 308.4)
XYZxyz(36.4764, 23.1821, 79.6280)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE9 #99E95F
analogous
#6A5FE9 #AF5FE9 #E95FDE
triadic
#AF5FE9 #E9AF5F #5FE9AF
tetradic
#AF5FE9 #E96A5F #99E95F #5FDEE9
square
#AF5FE9 #E96A5F #99E95F #5FDEE9
split-complementary
#AF5FE9 #DEE95F #5FE96A
monochromatic
#7319B5 #9429E2 #AF5FE9 #CA95F0 #E5CBF8

Accessibility & contrast

On white

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

On black

5.64
#AF5FE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE9#FFFFFF#000000##000000
##AF5FE91.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2581ED
Deuteranopia (green-blind)
#4B85E6
Tritanopia (blue-blind)
#A67A9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fe9;
/* rgb */ color: rgb(175, 95, 233);
/* oklch */ color: oklch(63.8% 0.206 308.4);
Tailwind
colors: {
  custom: {
    50: '#ca90f1',
    500: '#af5fe9',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe9;
$custom-light: #ca90f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe9",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 233
  },
  "hsl": {
    "h": 274.783,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63836,
    "c": 0.20614,
    "h": 308.4
  },
  "luminance": 0.23182
}

Semantic roles & 50–950 ramp

primary
#AF5FE9
secondary
#CEEABA
accent
#D80D63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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