#AF5CF5#AF5CF5

#AF5CF5 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.2% C 0.223 H 306.0°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF5
RGBrgb(175, 92, 245)
HSLhsl(273, 88%, 66%)
HSVhsv(273, 62%, 96%)
CMYKcmyk(28.6%, 62.4%, 0%, 3.9%)
CIE-LABlab(55.44, 60.35, -63.74)
CIE-LCHlch(55.44, 87.77, 313.44°)
OKLaboklab(64.2% 0.1311 -0.1804)
OKLCHoklch(64.2% 0.223 306)
XYZxyz(37.9842, 23.3612, 88.8766)
Luminance0.2336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF5 #A2F55C
analogous
#625CF5 #AF5CF5 #F55CEE
triadic
#AF5CF5 #F5AF5C #5CF5AF
tetradic
#AF5CF5 #F5625C #A2F55C #5CEEF5
square
#AF5CF5 #F5625C #A2F55C #5CEEF5
split-complementary
#AF5CF5 #EEF55C #5CF562
monochromatic
#730CCA #9322F1 #AF5CF5 #CB96F9 #E8CFFC

Accessibility & contrast

On white

3.70
#AF5CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#AF5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF5#FFFFFF#000000##000000
##AF5CF51.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FA
Deuteranopia (green-blind)
#3985F2
Tritanopia (blue-blind)
#A37CA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5cf5;
/* rgb */ color: rgb(175, 92, 245);
/* oklch */ color: oklch(64.2% 0.223 306.0);
Tailwind
colors: {
  custom: {
    50: '#cb8ff9',
    500: '#af5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf5;
$custom-light: #cb8ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf5",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 272.549,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64201,
    "c": 0.223,
    "h": 306
  },
  "luminance": 0.23361
}

Semantic roles & 50–950 ramp

primary
#AF5CF5
secondary
#D4F0BD
accent
#E50069
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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