#AF4ECB#AF4ECB

#AF4ECB is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.9% C 0.200 H 318.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF4ECB
RGBrgb(175, 78, 203)
HSLhsl(287, 55%, 55%)
HSVhsv(287, 62%, 80%)
CMYKcmyk(13.8%, 61.6%, 0%, 20.4%)
CIE-LABlab(50.54, 58.03, -47.85)
CIE-LCHlch(50.54, 75.21, 320.49°)
OKLaboklab(59.85% 0.1485 -0.1338)
OKLCHoklch(59.85% 0.2 318)
XYZxyz(31.1816, 18.8758, 58.4892)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4ECB #6ACB4E
analogous
#704ECB #AF4ECB #CB4EA8
triadic
#AF4ECB #CBAF4E #4ECBAF
tetradic
#AF4ECB #CB704E #6ACB4E #4EA8CB
square
#AF4ECB #CB704E #6ACB4E #4EA8CB
split-complementary
#AF4ECB #A8CB4E #4ECB70
monochromatic
#67247B #8F32AA #AF4ECB #C47DD9 #DAADE7

Accessibility & contrast

On white

4.40
#AF4ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AF4ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4ECB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4ECB#FFFFFF#000000##000000
##AF4ECB1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#537BC8
Tritanopia (blue-blind)
#AE6385
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ecb;
/* rgb */ color: rgb(175, 78, 203);
/* oklch */ color: oklch(59.9% 0.200 318.0);
Tailwind
colors: {
  custom: {
    50: '#ca85db',
    500: '#af4ecb',
    950: '#000000',
  },
}
SCSS
$custom: #af4ecb;
$custom-light: #ca85db;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ecb",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 203
  },
  "hsl": {
    "h": 286.56,
    "s": 54.585,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59853,
    "c": 0.1999,
    "h": 318
  },
  "luminance": 0.18875
}

Semantic roles & 50–950 ramp

primary
#AF4ECB
secondary
#ACD5A0
accent
#DE4A6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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