#AF7CDC#AF7CDC

#AF7CDC is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.5% C 0.146 H 307.4°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#AF7CDC
RGBrgb(175, 124, 220)
HSLhsl(272, 58%, 67%)
HSVhsv(272, 44%, 86%)
CMYKcmyk(20.5%, 43.6%, 0%, 13.7%)
CIE-LABlab(60.51, 37.91, -41.71)
CIE-LCHlch(60.51, 56.36, 312.26°)
OKLaboklab(67.5% 0.0888 -0.1162)
OKLCHoklch(67.5% 0.146 307.4)
XYZxyz(37.8026, 28.6969, 71.2439)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CDC #A9DC7C
analogous
#7F7CDC #AF7CDC #DC7CD9
triadic
#AF7CDC #DCAF7C #7CDCAF
tetradic
#AF7CDC #DC7F7C #A9DC7C #7CD9DC
square
#AF7CDC #DC7F7C #A9DC7C #7CD9DC
split-complementary
#AF7CDC #D9DC7C #7CDC7F
monochromatic
#732FAF #924CCF #AF7CDC #CCACE9 #EADDF6

Accessibility & contrast

On white

3.12
#AF7CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#AF7CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7CDC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CDC#FFFFFF#000000##000000
##AF7CDC1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6590DF
Deuteranopia (green-blind)
#7292D9
Tritanopia (blue-blind)
#A98BA2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af7cdc;
/* rgb */ color: rgb(175, 124, 220);
/* oklch */ color: oklch(67.5% 0.146 307.4);
Tailwind
colors: {
  custom: {
    50: '#c8a3e7',
    500: '#af7cdc',
    950: '#000000',
  },
}
SCSS
$custom: #af7cdc;
$custom-light: #c8a3e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cdc",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 220
  },
  "hsl": {
    "h": 271.875,
    "s": 57.831,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67502,
    "c": 0.14623,
    "h": 307.4
  },
  "luminance": 0.28697
}

Semantic roles & 50–950 ramp

primary
#AF7CDC
secondary
#D9E9CB
accent
#C5206E
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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