#AF5AF7#AF5AF7

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

Color values

HEX#AF5AF7
RGBrgb(175, 90, 247)
HSLhsl(272, 91%, 66%)
HSVhsv(272, 64%, 97%)
CMYKcmyk(29.1%, 63.6%, 0%, 3.1%)
CIE-LABlab(55.22, 61.75, -65.21)
CIE-LCHlch(55.22, 89.81, 313.44°)
OKLaboklab(64.08% 0.1333 -0.1847)
OKLCHoklch(64.08% 0.228 305.8)
XYZxyz(38.1202, 23.1420, 90.4363)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AF7 #A2F75A
analogous
#605AF7 #AF5AF7 #F75AF0
triadic
#AF5AF7 #F7AF5A #5AF7AF
tetradic
#AF5AF7 #F7605A #A2F75A #5AF0F7
square
#AF5AF7 #F7605A #A2F75A #5AF0F7
split-complementary
#AF5AF7 #F0F75A #5AF760
monochromatic
#730ACD #9320F4 #AF5AF7 #CB94FA #E8CFFD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5AF7#FFFFFF#000000##000000
##AF5AF71.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)
#0082FC
Deuteranopia (green-blind)
#3385F4
Tritanopia (blue-blind)
#A37BA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5af7;
/* rgb */ color: rgb(175, 90, 247);
/* oklch */ color: oklch(64.1% 0.228 305.8);
Tailwind
colors: {
  custom: {
    50: '#cb8dfb',
    500: '#af5af7',
    950: '#000000',
  },
}
SCSS
$custom: #af5af7;
$custom-light: #cb8dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5af7",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 272.484,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64079,
    "c": 0.22774,
    "h": 305.8
  },
  "luminance": 0.23142
}

Semantic roles & 50–950 ramp

primary
#AF5AF7
secondary
#D4F0BD
accent
#E60069
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140D17
muted
#837D85

Preview Lab

Preview with #AF5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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