#AF5DF4#AF5DF4

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

Color values

HEX#AF5DF4
RGBrgb(175, 93, 244)
HSLhsl(273, 87%, 66%)
HSVhsv(273, 62%, 96%)
CMYKcmyk(28.3%, 61.9%, 0%, 4.3%)
CIE-LABlab(55.56, 59.64, -62.99)
CIE-LCHlch(55.56, 86.75, 313.43°)
OKLaboklab(64.27% 0.1301 -0.1782)
OKLCHoklch(64.27% 0.221 306.1)
XYZxyz(37.9192, 23.4747, 88.1038)
Luminance0.2347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DF4 #A2F45D
analogous
#635DF4 #AF5DF4 #F45DED
triadic
#AF5DF4 #F4AF5D #5DF4AF
tetradic
#AF5DF4 #F4635D #A2F45D #5DEDF4
square
#AF5DF4 #F4635D #A2F45D #5DEDF4
split-complementary
#AF5DF4 #EDF45D #5DF463
monochromatic
#730EC9 #9324F0 #AF5DF4 #CB96F8 #E8D0FC

Accessibility & contrast

On white

3.69
#AF5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#AF5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DF4
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DF4#FFFFFF#000000##000000
##AF5DF41.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F9
Deuteranopia (green-blind)
#3C86F1
Tritanopia (blue-blind)
#A37CA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5df4;
/* rgb */ color: rgb(175, 93, 244);
/* oklch */ color: oklch(64.3% 0.221 306.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ff8',
    500: '#af5df4',
    950: '#000000',
  },
}
SCSS
$custom: #af5df4;
$custom-light: #cb8ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5df4",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 272.583,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64265,
    "c": 0.22061,
    "h": 306.1
  },
  "luminance": 0.23474
}

Semantic roles & 50–950 ramp

primary
#AF5DF4
secondary
#D4EFBE
accent
#E40269
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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