#AF34CF#AF34CF

#AF34CF is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.235 H 318.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF34CF
RGBrgb(175, 52, 207)
HSLhsl(288, 62%, 51%)
HSVhsv(288, 75%, 81%)
CMYKcmyk(15.5%, 74.9%, 0%, 18.8%)
CIE-LABlab(47.07, 69.19, -55.70)
CIE-LCHlch(47.07, 88.83, 321.16°)
OKLaboklab(57.44% 0.1756 -0.1566)
OKLCHoklch(57.44% 0.235 318.3)
XYZxyz(30.1681, 16.0763, 60.5333)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34CF #54CF34
analogous
#6134CF #AF34CF #CF34A1
triadic
#AF34CF #CFAF34 #34CFAF
tetradic
#AF34CF #CF6134 #54CF34 #34A1CF
square
#AF34CF #CF6134 #54CF34 #34A1CF
split-complementary
#AF34CF #A1CF34 #34CF61
monochromatic
#5D1A6E #8726A0 #AF34CF #C365DB #D697E6

Accessibility & contrast

On white

4.98
#AF34CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF34CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34CF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34CF#FFFFFF#000000##FFFFFF
##AF34CF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#3C73CC
Tritanopia (blue-blind)
#AE5580
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af34cf;
/* rgb */ color: rgb(175, 52, 207);
/* oklch */ color: oklch(57.4% 0.235 318.3);
Tailwind
colors: {
  custom: {
    50: '#cb78de',
    500: '#af34cf',
    950: '#000000',
  },
}
SCSS
$custom: #af34cf;
$custom-light: #cb78de;
$custom-dark: #000000;
JSON
{
  "hex": "#af34cf",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 287.613,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57444,
    "c": 0.23524,
    "h": 318.3
  },
  "luminance": 0.16075
}

Semantic roles & 50–950 ramp

primary
#AF34CF
secondary
#9BD28D
accent
#E54364
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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