#AF6FD4#AF6FD4

#AF6FD4 is a light, vivid violet. Relative luminance 0.252; OKLCH L 65.0% C 0.158 H 312.0°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF6FD4
RGBrgb(175, 111, 212)
HSLhsl(278, 54%, 63%)
HSVhsv(278, 48%, 83%)
CMYKcmyk(17.5%, 47.6%, 0%, 16.9%)
CIE-LABlab(57.31, 43.24, -42.26)
CIE-LCHlch(57.31, 60.47, 315.66°)
OKLaboklab(64.98% 0.1058 -0.1177)
OKLCHoklch(64.98% 0.158 312)
XYZxyz(35.2452, 25.2370, 65.2891)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FD4 #94D46F
analogous
#7C6FD4 #AF6FD4 #D46FC6
triadic
#AF6FD4 #D4AF6F #6FD4AF
tetradic
#AF6FD4 #D47C6F #94D46F #6FC6D4
square
#AF6FD4 #D47C6F #94D46F #6FC6D4
split-complementary
#AF6FD4 #C6D46F #6FD47C
monochromatic
#732E9A #9540C6 #AF6FD4 #C99EE2 #E3CDF0

Accessibility & contrast

On white

3.47
#AF6FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#AF6FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FD4
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FD4#FFFFFF#000000##000000
##AF6FD41.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5886D8
Deuteranopia (green-blind)
#6A8BD1
Tritanopia (blue-blind)
#AB7F98
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af6fd4;
/* rgb */ color: rgb(175, 111, 212);
/* oklch */ color: oklch(65.0% 0.158 312.0);
Tailwind
colors: {
  custom: {
    50: '#c99ae1',
    500: '#af6fd4',
    950: '#000000',
  },
}
SCSS
$custom: #af6fd4;
$custom-light: #c99ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#af6fd4",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 212
  },
  "hsl": {
    "h": 278.02,
    "s": 54.011,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64979,
    "c": 0.15827,
    "h": 312
  },
  "luminance": 0.25236
}

Semantic roles & 50–950 ramp

primary
#AF6FD4
secondary
#CBE1BD
accent
#C1245E
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF6FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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