#AF45C8#AF45C8

#AF45C8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.209 H 319.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF45C8
RGBrgb(175, 69, 200)
HSLhsl(289, 54%, 53%)
HSVhsv(289, 66%, 78%)
CMYKcmyk(12.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(48.94, 61.41, -48.69)
CIE-LCHlch(48.94, 78.37, 321.59°)
OKLaboklab(58.64% 0.159 -0.1362)
OKLCHoklch(58.64% 0.209 319.4)
XYZxyz(30.2313, 17.5417, 56.4259)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45C8 #5EC845
analogous
#6E45C8 #AF45C8 #C8459F
triadic
#AF45C8 #C8AF45 #45C8AF
tetradic
#AF45C8 #C86E45 #5EC845 #459FC8
square
#AF45C8 #C86E45 #5EC845 #459FC8
split-complementary
#AF45C8 #9FC845 #45C86E
monochromatic
#622171 #8B2FA0 #AF45C8 #C374D6 #D8A3E4

Accessibility & contrast

On white

4.66
#AF45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF45C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45C8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45C8#FFFFFF#000000##FFFFFF
##AF45C81.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#4E78C5
Tritanopia (blue-blind)
#AF5C81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af45c8;
/* rgb */ color: rgb(175, 69, 200);
/* oklch */ color: oklch(58.6% 0.209 319.4);
Tailwind
colors: {
  custom: {
    50: '#ca80d9',
    500: '#af45c8',
    950: '#000000',
  },
}
SCSS
$custom: #af45c8;
$custom-light: #ca80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af45c8",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 288.55,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58637,
    "c": 0.20935,
    "h": 319.4
  },
  "luminance": 0.1754
}

Semantic roles & 50–950 ramp

primary
#AF45C8
secondary
#A3D198
accent
#DE4A66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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