#AF5AF0#AF5AF0

#AF5AF0 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.220 H 307.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF5AF0
RGBrgb(175, 90, 240)
HSLhsl(274, 83%, 65%)
HSVhsv(274, 63%, 94%)
CMYKcmyk(27.1%, 62.5%, 0%, 5.9%)
CIE-LABlab(54.78, 60.19, -62.01)
CIE-LCHlch(54.78, 86.42, 314.15°)
OKLaboklab(63.62% 0.1337 -0.1753)
OKLCHoklch(63.62% 0.22 307.3)
XYZxyz(37.0603, 22.7180, 84.8538)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AF0 #9BF05A
analogous
#645AF0 #AF5AF0 #F05AE6
triadic
#AF5AF0 #F0AF5A #5AF0AF
tetradic
#AF5AF0 #F0645A #9BF05A #5AE6F0
square
#AF5AF0 #F0645A #9BF05A #5AE6F0
split-complementary
#AF5AF0 #E6F05A #5AF064
monochromatic
#7311BE #9422EB #AF5AF0 #CA92F5 #E5CAFA

Accessibility & contrast

On white

3.79
#AF5AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF5AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AF0
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AF0#FFFFFF#000000##000000
##AF5AF01.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F5
Deuteranopia (green-blind)
#3D84ED
Tritanopia (blue-blind)
#A5799D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5af0;
/* rgb */ color: rgb(175, 90, 240);
/* oklch */ color: oklch(63.6% 0.220 307.3);
Tailwind
colors: {
  custom: {
    50: '#cb8df6',
    500: '#af5af0',
    950: '#000000',
  },
}
SCSS
$custom: #af5af0;
$custom-light: #cb8df6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5af0",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 240
  },
  "hsl": {
    "h": 274,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63623,
    "c": 0.22046,
    "h": 307.3
  },
  "luminance": 0.22718
}

Semantic roles & 50–950 ramp

primary
#AF5AF0
secondary
#CFEDB9
accent
#E00664
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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