#AF5EF5#AF5EF5

#AF5EF5 is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.5% C 0.220 H 305.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF5
RGBrgb(175, 94, 245)
HSLhsl(272, 88%, 66%)
HSVhsv(272, 62%, 96%)
CMYKcmyk(28.6%, 61.6%, 0%, 3.9%)
CIE-LABlab(55.80, 59.38, -63.16)
CIE-LCHlch(55.80, 86.69, 313.23°)
OKLaboklab(64.46% 0.1289 -0.1787)
OKLCHoklch(64.46% 0.22 305.8)
XYZxyz(38.1598, 23.7122, 88.9351)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF5 #A4F55E
analogous
#645EF5 #AF5EF5 #F55EF0
triadic
#AF5EF5 #F5AF5E #5EF5AF
tetradic
#AF5EF5 #F5645E #A4F55E #5EF0F5
square
#AF5EF5 #F5645E #A4F55E #5EF0F5
split-complementary
#AF5EF5 #F0F55E #5EF564
monochromatic
#730DCC #9224F1 #AF5EF5 #CC98F9 #E8D1FC

Accessibility & contrast

On white

3.66
#AF5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#AF5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF5#FFFFFF#000000##000000
##AF5EF51.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#3C86F2
Tritanopia (blue-blind)
#A37DA1
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ef5;
/* rgb */ color: rgb(175, 94, 245);
/* oklch */ color: oklch(64.5% 0.220 305.8);
Tailwind
colors: {
  custom: {
    50: '#cb90f9',
    500: '#af5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef5;
$custom-light: #cb90f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef5",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 272.185,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64459,
    "c": 0.22032,
    "h": 305.8
  },
  "luminance": 0.23712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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