#AF5AF3#AF5AF3

#AF5AF3 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.8% C 0.224 H 306.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF5AF3
RGBrgb(175, 90, 243)
HSLhsl(273, 86%, 65%)
HSVhsv(273, 63%, 95%)
CMYKcmyk(28%, 63%, 0%, 4.7%)
CIE-LABlab(54.97, 60.86, -63.39)
CIE-LCHlch(54.97, 87.87, 313.83°)
OKLaboklab(63.82% 0.1335 -0.1793)
OKLCHoklch(63.82% 0.224 306.7)
XYZxyz(37.5096, 22.8977, 87.2203)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AF3 #9EF35A
analogous
#625AF3 #AF5AF3 #F35AEB
triadic
#AF5AF3 #F3AF5A #5AF3AF
tetradic
#AF5AF3 #F3625A #9EF35A #5AEBF3
square
#AF5AF3 #F3625A #9EF35A #5AEBF3
split-complementary
#AF5AF3 #EBF35A #5AF362
monochromatic
#730EC4 #9321EF #AF5AF3 #CB93F7 #E6CCFB

Accessibility & contrast

On white

3.76
#AF5AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#AF5AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AF3
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AF3#FFFFFF#000000##000000
##AF5AF31.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F8
Deuteranopia (green-blind)
#3984F0
Tritanopia (blue-blind)
#A47A9F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5af3;
/* rgb */ color: rgb(175, 90, 243);
/* oklch */ color: oklch(63.8% 0.224 306.7);
Tailwind
colors: {
  custom: {
    50: '#cb8df8',
    500: '#af5af3',
    950: '#000000',
  },
}
SCSS
$custom: #af5af3;
$custom-light: #cb8df8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5af3",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 243
  },
  "hsl": {
    "h": 273.333,
    "s": 86.441,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63817,
    "c": 0.22358,
    "h": 306.7
  },
  "luminance": 0.22897
}

Semantic roles & 50–950 ramp

primary
#AF5AF3
secondary
#D2EEBB
accent
#E30366
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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