#AF2EDB#AF2EDB

#AF2EDB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.8% C 0.251 H 315.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF2EDB
RGBrgb(175, 46, 219)
HSLhsl(285, 71%, 52%)
HSVhsv(285, 79%, 86%)
CMYKcmyk(20.1%, 79%, 0%, 14.1%)
CIE-LABlab(47.21, 73.32, -62.36)
CIE-LCHlch(47.21, 96.25, 319.62°)
OKLaboklab(57.79% 0.1786 -0.1761)
OKLCHoklch(57.79% 0.251 315.4)
XYZxyz(31.4403, 16.1836, 68.4717)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EDB #5ADB2E
analogous
#592EDB #AF2EDB #DB2EB0
triadic
#AF2EDB #DBAF2E #2EDBAF
tetradic
#AF2EDB #DB592E #5ADB2E #2EB0DB
square
#AF2EDB #DB592E #5ADB2E #2EB0DB
split-complementary
#AF2EDB #B0DB2E #2EDB59
monochromatic
#60157A #891EAE #AF2EDB #C362E4 #D796ED

Accessibility & contrast

On white

4.96
#AF2EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF2EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EDB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EDB#FFFFFF#000000##FFFFFF
##AF2EDB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#2673D7
Tritanopia (blue-blind)
#AB5785
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af2edb;
/* rgb */ color: rgb(175, 46, 219);
/* oklch */ color: oklch(57.8% 0.251 315.4);
Tailwind
colors: {
  custom: {
    50: '#cc76e7',
    500: '#af2edb',
    950: '#000000',
  },
}
SCSS
$custom: #af2edb;
$custom-light: #cc76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2edb",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 219
  },
  "hsl": {
    "h": 284.74,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57794,
    "c": 0.2508,
    "h": 315.4
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#AF2EDB
secondary
#A0D88D
accent
#ED3A68
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF2EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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