#AF5AF4#AF5AF4

#AF5AF4 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.9% C 0.225 H 306.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF5AF4
RGBrgb(175, 90, 244)
HSLhsl(273, 88%, 65%)
HSVhsv(273, 63%, 96%)
CMYKcmyk(28.3%, 63.1%, 0%, 4.3%)
CIE-LABlab(55.03, 61.08, -63.84)
CIE-LCHlch(55.03, 88.36, 313.73°)
OKLaboklab(63.88% 0.1335 -0.1807)
OKLCHoklch(63.88% 0.225 306.4)
XYZxyz(37.6610, 22.9583, 88.0178)
Luminance0.2296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AF4 #9FF45A
analogous
#625AF4 #AF5AF4 #F45AEC
triadic
#AF5AF4 #F4AF5A #5AF4AF
tetradic
#AF5AF4 #F4625A #9FF45A #5AECF4
square
#AF5AF4 #F4625A #9FF45A #5AECF4
split-complementary
#AF5AF4 #ECF45A #5AF462
monochromatic
#730DC6 #9321F0 #AF5AF4 #CB93F8 #E7CDFC

Accessibility & contrast

On white

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

On black

5.59
#AF5AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AF4
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AF4#FFFFFF#000000##000000
##AF5AF41.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F9
Deuteranopia (green-blind)
#3884F1
Tritanopia (blue-blind)
#A37A9F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5af4;
/* rgb */ color: rgb(175, 90, 244);
/* oklch */ color: oklch(63.9% 0.225 306.4);
Tailwind
colors: {
  custom: {
    50: '#cb8df9',
    500: '#af5af4',
    950: '#000000',
  },
}
SCSS
$custom: #af5af4;
$custom-light: #cb8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5af4",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 273.117,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63883,
    "c": 0.22462,
    "h": 306.4
  },
  "luminance": 0.22958
}

Semantic roles & 50–950 ramp

primary
#AF5AF4
secondary
#D2EFBB
accent
#E40167
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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