#AF3EB2#AF3EB2

#AF3EB2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.199 H 326.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF3EB2
RGBrgb(175, 62, 178)
HSLhsl(298, 48%, 47%)
HSVhsv(298, 65%, 70%)
CMYKcmyk(1.7%, 65.2%, 0%, 30.2%)
CIE-LABlab(46.68, 60.28, -39.47)
CIE-LCHlch(46.68, 72.06, 326.78°)
OKLaboklab(56.62% 0.1667 -0.1093)
OKLCHoklch(56.62% 0.199 326.8)
XYZxyz(27.4372, 15.7753, 43.7106)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EB2 #41B23E
analogous
#753EB2 #AF3EB2 #B23E7B
triadic
#AF3EB2 #B2AF3E #3EB2AF
tetradic
#AF3EB2 #B2753E #41B23E #3E7BB2
square
#AF3EB2 #B2753E #41B23E #3E7BB2
split-complementary
#AF3EB2 #7BB23E #3EB275
monochromatic
#561E57 #822E85 #AF3EB2 #C664C9 #D792D9

Accessibility & contrast

On white

5.05
#AF3EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF3EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EB2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EB2#FFFFFF#000000##FFFFFF
##AF3EB21.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#B44E73
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af3eb2;
/* rgb */ color: rgb(175, 62, 178);
/* oklch */ color: oklch(56.6% 0.199 326.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cc9',
    500: '#af3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #af3eb2;
$custom-light: #ca7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af3eb2",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 298.448,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56615,
    "c": 0.19932,
    "h": 326.8
  },
  "luminance": 0.15774
}

Semantic roles & 50–950 ramp

primary
#AF3EB2
secondary
#89C488
accent
#D85053
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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