#AF5DF5#AF5DF5

#AF5DF5 is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.3% C 0.222 H 305.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF5DF5
RGBrgb(175, 93, 245)
HSLhsl(272, 88%, 66%)
HSVhsv(272, 62%, 96%)
CMYKcmyk(28.6%, 62%, 0%, 3.9%)
CIE-LABlab(55.62, 59.87, -63.45)
CIE-LCHlch(55.62, 87.24, 313.34°)
OKLaboklab(64.33% 0.13 -0.1795)
OKLCHoklch(64.33% 0.222 305.9)
XYZxyz(38.0714, 23.5356, 88.9057)
Luminance0.2354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DF5 #A3F55D
analogous
#635DF5 #AF5DF5 #F55DEF
triadic
#AF5DF5 #F5AF5D #5DF5AF
tetradic
#AF5DF5 #F5635D #A3F55D #5DEFF5
square
#AF5DF5 #F5635D #A3F55D #5DEFF5
split-complementary
#AF5DF5 #EFF55D #5DF563
monochromatic
#730DCB #9323F1 #AF5DF5 #CB97F9 #E8D0FC

Accessibility & contrast

On white

3.68
#AF5DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#AF5DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DF5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DF5#FFFFFF#000000##000000
##AF5DF51.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#3B86F2
Tritanopia (blue-blind)
#A37CA1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5df5;
/* rgb */ color: rgb(175, 93, 245);
/* oklch */ color: oklch(64.3% 0.222 305.9);
Tailwind
colors: {
  custom: {
    50: '#cb8ff9',
    500: '#af5df5',
    950: '#000000',
  },
}
SCSS
$custom: #af5df5;
$custom-light: #cb8ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5df5",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 272.368,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64329,
    "c": 0.22167,
    "h": 305.9
  },
  "luminance": 0.23535
}

Semantic roles & 50–950 ramp

primary
#AF5DF5
secondary
#D5F0BE
accent
#E5016A
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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