#AF6ECB#AF6ECB

#AF6ECB is a light, vivid purple. Relative luminance 0.246; OKLCH L 64.4% C 0.150 H 315.0°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF6ECB
RGBrgb(175, 110, 203)
HSLhsl(282, 47%, 61%)
HSVhsv(282, 46%, 80%)
CMYKcmyk(13.8%, 45.8%, 0%, 20.4%)
CIE-LABlab(56.66, 41.85, -38.18)
CIE-LCHlch(56.66, 56.65, 317.63°)
OKLaboklab(64.36% 0.1059 -0.1059)
OKLCHoklch(64.36% 0.15 315)
XYZxyz(34.0329, 24.5785, 59.4397)
Luminance0.2458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6ECB #8ACB6E
analogous
#816ECB #AF6ECB #CB6EB9
triadic
#AF6ECB #CBAF6E #6ECBAF
tetradic
#AF6ECB #CB816E #8ACB6E #6EB9CB
square
#AF6ECB #CB816E #8ACB6E #6EB9CB
split-complementary
#AF6ECB #B9CB6E #6ECB81
monochromatic
#71328C #9642B9 #AF6ECB #C89BDB #E1C8EB

Accessibility & contrast

On white

3.55
#AF6ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#AF6ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6ECB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6ECB#FFFFFF#000000##000000
##AF6ECB1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CE
Deuteranopia (green-blind)
#6E8AC8
Tritanopia (blue-blind)
#AD7B93
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af6ecb;
/* rgb */ color: rgb(175, 110, 203);
/* oklch */ color: oklch(64.4% 0.150 315.0);
Tailwind
colors: {
  custom: {
    50: '#c899db',
    500: '#af6ecb',
    950: '#000000',
  },
}
SCSS
$custom: #af6ecb;
$custom-light: #c899db;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ecb",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 203
  },
  "hsl": {
    "h": 281.935,
    "s": 47.208,
    "l": 61.373
  },
  "oklch": {
    "l": 0.64359,
    "c": 0.14975,
    "h": 315
  },
  "luminance": 0.24578
}

Semantic roles & 50–950 ramp

primary
#AF6ECB
secondary
#C3DCB9
accent
#BA2B56
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF6ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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