#AF3EA8#AF3EA8

#AF3EA8 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.191 H 330.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA8
RGBrgb(175, 62, 168)
HSLhsl(304, 48%, 46%)
HSVhsv(304, 65%, 69%)
CMYKcmyk(0%, 64.6%, 4%, 31.4%)
CIE-LABlab(46.16, 58.58, -34.39)
CIE-LCHlch(46.16, 67.93, 329.58°)
OKLaboklab(56.07% 0.1661 -0.0946)
OKLCHoklch(56.07% 0.191 330.3)
XYZxyz(26.4696, 15.3883, 38.6143)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA8 #3EAF45
analogous
#7E3EAF #AF3EA8 #AF3E70
triadic
#AF3EA8 #A8AF3E #3EA8AF
tetradic
#AF3EA8 #AF7E3E #3EAF45 #3E70AF
square
#AF3EA8 #AF7E3E #3EAF45 #3E70AF
split-complementary
#AF3EA8 #70AF3E #3EAF7E
monochromatic
#551E51 #822E7D #AF3EA8 #C863C1 #D890D3

Accessibility & contrast

On white

5.15
#AF3EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF3EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA8#FFFFFF#000000##FFFFFF
##AF3EA81.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AB
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#B54A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea8;
/* rgb */ color: rgb(175, 62, 168);
/* oklch */ color: oklch(56.1% 0.191 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cc2',
    500: '#af3ea8',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea8;
$custom-light: #ca7cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea8",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 303.717,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56073,
    "c": 0.19111,
    "h": 330.3
  },
  "luminance": 0.15386
}

Semantic roles & 50–950 ramp

primary
#AF3EA8
secondary
#86C38A
accent
#D75951
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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