#AF7CD4#AF7CD4

#AF7CD4 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.1% C 0.137 H 309.8°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF7CD4
RGBrgb(175, 124, 212)
HSLhsl(275, 51%, 66%)
HSVhsv(275, 42%, 83%)
CMYKcmyk(17.5%, 41.5%, 0%, 16.9%)
CIE-LABlab(60.14, 36.11, -37.81)
CIE-LCHlch(60.14, 52.28, 313.69°)
OKLaboklab(67.1% 0.0874 -0.1049)
OKLCHoklch(67.1% 0.137 309.8)
XYZxyz(36.7683, 28.2832, 65.7968)
Luminance0.2828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CD4 #A1D47C
analogous
#837CD4 #AF7CD4 #D47CCD
triadic
#AF7CD4 #D4AF7C #7CD4AF
tetradic
#AF7CD4 #D4837C #A1D47C #7CCDD4
square
#AF7CD4 #D4837C #A1D47C #7CCDD4
split-complementary
#AF7CD4 #CDD47C #7CD483
monochromatic
#7335A1 #934EC5 #AF7CD4 #CBAAE3 #E7D8F2

Accessibility & contrast

On white

3.15
#AF7CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF7CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7CD4
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CD4#FFFFFF#000000##000000
##AF7CD41.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#698FD7
Deuteranopia (green-blind)
#7692D2
Tritanopia (blue-blind)
#AB899E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7cd4;
/* rgb */ color: rgb(175, 124, 212);
/* oklch */ color: oklch(67.1% 0.137 309.8);
Tailwind
colors: {
  custom: {
    50: '#c8a3e1',
    500: '#af7cd4',
    950: '#000000',
  },
}
SCSS
$custom: #af7cd4;
$custom-light: #c8a3e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cd4",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 274.773,
    "s": 50.575,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67103,
    "c": 0.13653,
    "h": 309.8
  },
  "luminance": 0.28283
}

Semantic roles & 50–950 ramp

primary
#AF7CD4
secondary
#D4E4C7
accent
#BE2867
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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