#AF4AFF#AF4AFF

#AF4AFF is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.8% C 0.255 H 305.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF4AFF
RGBrgb(175, 74, 255)
HSLhsl(273, 100%, 65%)
HSVhsv(273, 71%, 100%)
CMYKcmyk(31.4%, 71%, 0%, 0%)
CIE-LABlab(53.20, 70.62, -72.91)
CIE-LCHlch(53.20, 101.50, 314.08°)
OKLaboklab(62.81% 0.1486 -0.2072)
OKLCHoklch(62.81% 0.255 305.6)
XYZxyz(38.1740, 21.2318, 96.6754)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AFF #9AFF4A
analogous
#554AFF #AF4AFF #FF4AF4
triadic
#AF4AFF #FFAF4A #4AFFAF
tetradic
#AF4AFF #FF554A #9AFF4A #4AF4FF
square
#AF4AFF #FF554A #9AFF4A #4AF4FF
split-complementary
#AF4AFF #F4FF4A #4AFF55
monochromatic
#7300CF #940DFF #AF4AFF #CA87FF #E5C4FF

Accessibility & contrast

On white

4.00
#AF4AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AF4AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AFF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AFF#FFFFFF#000000##000000
##AF4AFF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#007FFB
Tritanopia (blue-blind)
#A175A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af4aff;
/* rgb */ color: rgb(175, 74, 255);
/* oklch */ color: oklch(62.8% 0.255 305.6);
Tailwind
colors: {
  custom: {
    50: '#cd85ff',
    500: '#af4aff',
    950: '#000000',
  },
}
SCSS
$custom: #af4aff;
$custom-light: #cd85ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aff",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 255
  },
  "hsl": {
    "h": 273.481,
    "s": 100,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62806,
    "c": 0.25502,
    "h": 305.6
  },
  "luminance": 0.21232
}

Semantic roles & 50–950 ramp

primary
#AF4AFF
secondary
#CFF2B3
accent
#E60065
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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