#AF5EC0#AF5EC0

#AF5EC0 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.4% C 0.165 H 320.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF5EC0
RGBrgb(175, 94, 192)
HSLhsl(290, 44%, 56%)
HSVhsv(290, 51%, 75%)
CMYKcmyk(8.9%, 51%, 0%, 24.7%)
CIE-LABlab(52.87, 48.05, -37.85)
CIE-LCHlch(52.87, 61.16, 321.77°)
OKLaboklab(61.37% 0.1269 -0.1048)
OKLCHoklch(61.37% 0.165 320.5)
XYZxyz(31.1952, 20.9264, 52.2549)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EC0 #6FC05E
analogous
#7E5EC0 #AF5EC0 #C05EA0
triadic
#AF5EC0 #C0AF5E #5EC0AF
tetradic
#AF5EC0 #C07E5E #6FC05E #5EA0C0
square
#AF5EC0 #C07E5E #6FC05E #5EA0C0
split-complementary
#AF5EC0 #A0C05E #5EC07E
monochromatic
#692E76 #913FA2 #AF5EC0 #C58AD1 #DBB6E2

Accessibility & contrast

On white

4.05
#AF5EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF5EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EC0
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EC0#FFFFFF#000000##000000
##AF5EC01.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D78C3
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#B06B86
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5ec0;
/* rgb */ color: rgb(175, 94, 192);
/* oklch */ color: oklch(61.4% 0.165 320.5);
Tailwind
colors: {
  custom: {
    50: '#c98fd3',
    500: '#af5ec0',
    950: '#000000',
  },
}
SCSS
$custom: #af5ec0;
$custom-light: #c98fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ec0",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 289.592,
    "s": 43.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6137,
    "c": 0.16462,
    "h": 320.5
  },
  "luminance": 0.20925
}

Semantic roles & 50–950 ramp

primary
#AF5EC0
secondary
#B0D1A9
accent
#D3546A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130D14
muted
#827D83

Preview Lab

Preview with #AF5EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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