#AF5CF4#AF5CF4

#AF5CF4 is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.1% C 0.222 H 306.2°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF4
RGBrgb(175, 92, 244)
HSLhsl(273, 87%, 66%)
HSVhsv(273, 62%, 96%)
CMYKcmyk(28.3%, 62.3%, 0%, 4.3%)
CIE-LABlab(55.38, 60.13, -63.28)
CIE-LCHlch(55.38, 87.29, 313.54°)
OKLaboklab(64.14% 0.1312 -0.179)
OKLCHoklch(64.14% 0.222 306.2)
XYZxyz(37.8320, 23.3003, 88.0748)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF4 #A1F45C
analogous
#635CF4 #AF5CF4 #F45CED
triadic
#AF5CF4 #F4AF5C #5CF4AF
tetradic
#AF5CF4 #F4635C #A1F45C #5CEDF4
square
#AF5CF4 #F4635C #A1F45C #5CEDF4
split-complementary
#AF5CF4 #EDF45C #5CF463
monochromatic
#730EC8 #9323F0 #AF5CF4 #CB95F8 #E7CFFC

Accessibility & contrast

On white

3.71
#AF5CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#AF5CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF4#FFFFFF#000000##000000
##AF5CF41.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af5cf4;
/* rgb */ color: rgb(175, 92, 244);
/* oklch */ color: oklch(64.1% 0.222 306.2);
Tailwind
colors: {
  custom: {
    50: '#cb8ef8',
    500: '#af5cf4',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf4;
$custom-light: #cb8ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf4",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 244
  },
  "hsl": {
    "h": 272.763,
    "s": 87.356,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64136,
    "c": 0.22196,
    "h": 306.2
  },
  "luminance": 0.233
}

Semantic roles & 50–950 ramp

primary
#AF5CF4
secondary
#D4EFBD
accent
#E40268
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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