#AF5CF0#AF5CF0

#AF5CF0 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 63.9% C 0.218 H 307.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF0
RGBrgb(175, 92, 240)
HSLhsl(274, 83%, 65%)
HSVhsv(274, 62%, 94%)
CMYKcmyk(27.1%, 61.7%, 0%, 5.9%)
CIE-LABlab(55.13, 59.23, -61.45)
CIE-LCHlch(55.13, 85.34, 313.95°)
OKLaboklab(63.88% 0.1314 -0.1736)
OKLCHoklch(63.88% 0.218 307.1)
XYZxyz(37.2312, 23.0600, 84.9108)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF0 #9DF05C
analogous
#655CF0 #AF5CF0 #F05CE7
triadic
#AF5CF0 #F0AF5C #5CF0AF
tetradic
#AF5CF0 #F0655C #9DF05C #5CE7F0
square
#AF5CF0 #F0655C #9DF05C #5CE7F0
split-complementary
#AF5CF0 #E7F05C #5CF065
monochromatic
#7312C0 #9324EB #AF5CF0 #CB94F5 #E6CCFA

Accessibility & contrast

On white

3.74
#AF5CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#AF5CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF0
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF0#FFFFFF#000000##000000
##AF5CF01.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F5
Deuteranopia (green-blind)
#4085ED
Tritanopia (blue-blind)
#A57A9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5cf0;
/* rgb */ color: rgb(175, 92, 240);
/* oklch */ color: oklch(63.9% 0.218 307.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ef6',
    500: '#af5cf0',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf0;
$custom-light: #cb8ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf0",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 240
  },
  "hsl": {
    "h": 273.649,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63879,
    "c": 0.21775,
    "h": 307.1
  },
  "luminance": 0.2306
}

Semantic roles & 50–950 ramp

primary
#AF5CF0
secondary
#D1EDBB
accent
#E00666
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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