#AF3ECD#AF3ECD

#AF3ECD is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.223 H 318.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF3ECD
RGBrgb(175, 62, 205)
HSLhsl(287, 59%, 52%)
HSVhsv(287, 70%, 80%)
CMYKcmyk(14.6%, 69.8%, 0%, 19.6%)
CIE-LABlab(48.22, 65.20, -52.71)
CIE-LCHlch(48.22, 83.84, 321.05°)
OKLaboklab(58.22% 0.1663 -0.1479)
OKLCHoklch(58.22% 0.223 318.4)
XYZxyz(30.4198, 16.9684, 59.4186)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ECD #5CCD3E
analogous
#683ECD #AF3ECD #CD3EA3
triadic
#AF3ECD #CDAF3E #3ECDAF
tetradic
#AF3ECD #CD683E #5CCD3E #3EA3CD
square
#AF3ECD #CD683E #5CCD3E #3EA3CD
split-complementary
#AF3ECD #A3CD3E #3ECD68
monochromatic
#611E73 #8A2AA3 #AF3ECD #C36FDA #D79FE6

Accessibility & contrast

On white

4.78
#AF3ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF3ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ECD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ECD#FFFFFF#000000##FFFFFF
##AF3ECD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4576CA
Tritanopia (blue-blind)
#AE5A81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af3ecd;
/* rgb */ color: rgb(175, 62, 205);
/* oklch */ color: oklch(58.2% 0.223 318.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ddd',
    500: '#af3ecd',
    950: '#000000',
  },
}
SCSS
$custom: #af3ecd;
$custom-light: #cb7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ecd",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 205
  },
  "hsl": {
    "h": 287.413,
    "s": 58.848,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.22254,
    "h": 318.4
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

primary
#AF3ECD
secondary
#A1D394
accent
#E24667
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF3ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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