#AF7ECD#AF7ECD

#AF7ECD is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.1% C 0.125 H 311.8°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#AF7ECD
RGBrgb(175, 126, 205)
HSLhsl(277, 44%, 65%)
HSVhsv(277, 39%, 80%)
CMYKcmyk(14.6%, 38.5%, 0%, 19.6%)
CIE-LABlab(60.29, 33.46, -33.64)
CIE-LCHlch(60.29, 47.45, 314.85°)
OKLaboklab(67.11% 0.0831 -0.0929)
OKLCHoklch(67.11% 0.125 311.8)
XYZxyz(36.1576, 28.4440, 61.3313)
Luminance0.2844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECD #9CCD7E
analogous
#877ECD #AF7ECD #CD7EC4
triadic
#AF7ECD #CDAF7E #7ECDAF
tetradic
#AF7ECD #CD877E #9CCD7E #7EC4CD
square
#AF7ECD #CD877E #9CCD7E #7EC4CD
split-complementary
#AF7ECD #C4CD7E #7ECD87
monochromatic
#733A96 #9452BC #AF7ECD #CAAADE #E6D6EF

Accessibility & contrast

On white

3.14
#AF7ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#AF7ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECD
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECD#FFFFFF#000000##000000
##AF7ECD1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8FD0
Deuteranopia (green-blind)
#7B92CB
Tritanopia (blue-blind)
#AC899C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7ecd;
/* rgb */ color: rgb(175, 126, 205);
/* oklch */ color: oklch(67.1% 0.125 311.8);
Tailwind
colors: {
  custom: {
    50: '#c8a4dc',
    500: '#af7ecd',
    950: '#000000',
  },
}
SCSS
$custom: #af7ecd;
$custom-light: #c8a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ecd",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 205
  },
  "hsl": {
    "h": 277.215,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6711,
    "c": 0.12467,
    "h": 311.8
  },
  "luminance": 0.28443
}

Semantic roles & 50–950 ramp

primary
#AF7ECD
secondary
#D0E1C6
accent
#B72E62
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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