#AF5FF4#AF5FF4

#AF5FF4 is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.5% C 0.218 H 305.9°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF5FF4
RGBrgb(175, 95, 244)
HSLhsl(272, 87%, 66%)
HSVhsv(272, 61%, 96%)
CMYKcmyk(28.3%, 61.1%, 0%, 4.3%)
CIE-LABlab(55.92, 58.67, -62.42)
CIE-LCHlch(55.92, 85.66, 313.23°)
OKLaboklab(64.53% 0.1278 -0.1765)
OKLCHoklch(64.53% 0.218 305.9)
XYZxyz(38.0970, 23.8303, 88.1631)
Luminance0.2383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FF4 #A4F45F
analogous
#655FF4 #AF5FF4 #F45FEF
triadic
#AF5FF4 #F4AF5F #5FF4AF
tetradic
#AF5FF4 #F4655F #A4F45F #5FEFF4
square
#AF5FF4 #F4655F #A4F45F #5FEFF4
split-complementary
#AF5FF4 #EFF45F #5FF465
monochromatic
#730ECB #9226F0 #AF5FF4 #CC98F8 #E8D2FC

Accessibility & contrast

On white

3.64
#AF5FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#AF5FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FF4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FF4#FFFFFF#000000##000000
##AF5FF41.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0183F9
Deuteranopia (green-blind)
#3F86F1
Tritanopia (blue-blind)
#A37DA1
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ff4;
/* rgb */ color: rgb(175, 95, 244);
/* oklch */ color: oklch(64.5% 0.218 305.9);
Tailwind
colors: {
  custom: {
    50: '#cb90f8',
    500: '#af5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #af5ff4;
$custom-light: #cb90f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ff4",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 272.215,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64525,
    "c": 0.2179,
    "h": 305.9
  },
  "luminance": 0.2383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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