#AF3CE2#AF3CE2

#AF3CE2 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.4% C 0.243 H 313.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF3CE2
RGBrgb(175, 60, 226)
HSLhsl(282, 74%, 56%)
HSVhsv(282, 73%, 89%)
CMYKcmyk(22.6%, 73.5%, 0%, 11.4%)
CIE-LABlab(49.30, 70.03, -62.97)
CIE-LCHlch(49.30, 94.18, 318.04°)
OKLaboklab(59.41% 0.166 -0.178)
OKLCHoklch(59.41% 0.243 313)
XYZxyz(33.0201, 17.8377, 73.6404)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CE2 #6FE23C
analogous
#5C3CE2 #AF3CE2 #E23CC2
triadic
#AF3CE2 #E2AF3C #3CE2AF
tetradic
#AF3CE2 #E25C3C #6FE23C #3CC2E2
square
#AF3CE2 #E25C3C #6FE23C #3CC2E2
split-complementary
#AF3CE2 #C2E23C #3CE25C
monochromatic
#69158E #911DC4 #AF3CE2 #C571EA #DBA7F2

Accessibility & contrast

On white

4.60
#AF3CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF3CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CE2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CE2#FFFFFF#000000##FFFFFF
##AF3CE21.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#2A78DE
Tritanopia (blue-blind)
#A9618D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af3ce2;
/* rgb */ color: rgb(175, 60, 226);
/* oklch */ color: oklch(59.4% 0.243 313.0);
Tailwind
colors: {
  custom: {
    50: '#cc7dec',
    500: '#af3ce2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ce2;
$custom-light: #cc7dec;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ce2",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 226
  },
  "hsl": {
    "h": 281.566,
    "s": 74.107,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59414,
    "c": 0.24334,
    "h": 313
  },
  "luminance": 0.17837
}

Semantic roles & 50–950 ramp

primary
#AF3CE2
secondary
#B0DF9B
accent
#F13770
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF3CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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