#AF3AF2#AF3AF2

#AF3AF2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 60.4% C 0.259 H 309.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF3AF2
RGBrgb(175, 58, 242)
HSLhsl(278, 88%, 59%)
HSVhsv(278, 76%, 95%)
CMYKcmyk(27.7%, 76%, 0%, 5.1%)
CIE-LABlab(50.16, 73.95, -70.60)
CIE-LCHlch(50.16, 102.24, 316.33°)
OKLaboklab(60.37% 0.1649 -0.2004)
OKLCHoklch(60.37% 0.259 309.5)
XYZxyz(35.2160, 18.5516, 85.7128)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AF2 #7DF23A
analogous
#533AF2 #AF3AF2 #F23AD9
triadic
#AF3AF2 #F2AF3A #3AF2AF
tetradic
#AF3AF2 #F2533A #7DF23A #3AD9F2
square
#AF3AF2 #F2533A #7DF23A #3AD9F2
split-complementary
#AF3AF2 #D9F23A #3AF253
monochromatic
#6E0BA7 #940FE0 #AF3AF2 #C673F6 #DEADFA

Accessibility & contrast

On white

4.46
#AF3AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AF3AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF3AF2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AF2#FFFFFF#000000##000000
##AF3AF21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#A56795
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af3af2;
/* rgb */ color: rgb(175, 58, 242);
/* oklch */ color: oklch(60.4% 0.259 309.5);
Tailwind
colors: {
  custom: {
    50: '#cd7cf7',
    500: '#af3af2',
    950: '#000000',
  },
}
SCSS
$custom: #af3af2;
$custom-light: #cd7cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3af2",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 242
  },
  "hsl": {
    "h": 278.152,
    "s": 87.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60369,
    "c": 0.25949,
    "h": 309.5
  },
  "luminance": 0.18551
}

Semantic roles & 50–950 ramp

primary
#AF3AF2
secondary
#BAE8A0
accent
#FE2A77
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF3AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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