#AF45AF#AF45AF

#AF45AF is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.2% C 0.187 H 327.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF45AF
RGBrgb(175, 69, 175)
HSLhsl(300, 43%, 48%)
HSVhsv(300, 61%, 69%)
CMYKcmyk(0%, 60.6%, 0%, 31.4%)
CIE-LABlab(47.58, 56.82, -36.28)
CIE-LCHlch(47.58, 67.42, 327.44°)
OKLaboklab(57.22% 0.1582 -0.1001)
OKLCHoklch(57.22% 0.187 327.7)
XYZxyz(27.5448, 16.4671, 42.2768)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AF #45AF45
analogous
#7A45AF #AF45AF #AF457A
triadic
#AF45AF #AFAF45 #45AFAF
tetradic
#AF45AF #AF7A45 #45AF45 #457AAF
square
#AF45AF #AF7A45 #45AF45 #457AAF
split-complementary
#AF45AF #7AAF45 #45AF7A
monochromatic
#572257 #833483 #AF45AF #C56CC5 #D698D6

Accessibility & contrast

On white

4.89
#AF45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AF#FFFFFF#000000##FFFFFF
##AF45AF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#B45274
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af45af;
/* rgb */ color: rgb(175, 69, 175);
/* oklch */ color: oklch(57.2% 0.187 327.7);
Tailwind
colors: {
  custom: {
    50: '#ca7fc7',
    500: '#af45af',
    950: '#000000',
  },
}
SCSS
$custom: #af45af;
$custom-light: #ca7fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af45af",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57219,
    "c": 0.18723,
    "h": 327.7
  },
  "luminance": 0.16465
}

Semantic roles & 50–950 ramp

primary
#AF45AF
secondary
#8DC28D
accent
#D35555
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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