#AF3ECC#AF3ECC

#AF3ECC is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.222 H 318.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF3ECC
RGBrgb(175, 62, 204)
HSLhsl(288, 58%, 52%)
HSVhsv(288, 70%, 80%)
CMYKcmyk(14.2%, 69.6%, 0%, 20%)
CIE-LABlab(48.16, 65.01, -52.23)
CIE-LCHlch(48.16, 83.40, 321.22°)
OKLaboklab(58.16% 0.1664 -0.1465)
OKLCHoklch(58.16% 0.222 318.6)
XYZxyz(30.2994, 16.9202, 58.7850)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ECC #5BCC3E
analogous
#683ECC #AF3ECC #CC3EA2
triadic
#AF3ECC #CCAF3E #3ECCAF
tetradic
#AF3ECC #CC683E #5BCC3E #3EA2CC
square
#AF3ECC #CC683E #5BCC3E #3EA2CC
split-complementary
#AF3ECC #A2CC3E #3ECC68
monochromatic
#611E72 #8A2BA2 #AF3ECC #C36ED9 #D79FE6

Accessibility & contrast

On white

4.79
#AF3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ECC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ECC#FFFFFF#000000##FFFFFF
##AF3ECC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#4676C9
Tritanopia (blue-blind)
#AF5981
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af3ecc;
/* rgb */ color: rgb(175, 62, 204);
/* oklch */ color: oklch(58.2% 0.222 318.6);
Tailwind
colors: {
  custom: {
    50: '#cb7ddc',
    500: '#af3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #af3ecc;
$custom-light: #cb7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ecc",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 287.746,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58156,
    "c": 0.22166,
    "h": 318.6
  },
  "luminance": 0.16919
}

Semantic roles & 50–950 ramp

primary
#AF3ECC
secondary
#A1D294
accent
#E14666
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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