#AF45CA#AF45CA

#AF45CA is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.211 H 318.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF45CA
RGBrgb(175, 69, 202)
HSLhsl(288, 56%, 53%)
HSVhsv(288, 66%, 79%)
CMYKcmyk(13.4%, 65.8%, 0%, 20.8%)
CIE-LABlab(49.05, 61.79, -49.66)
CIE-LCHlch(49.05, 79.27, 321.22°)
OKLaboklab(58.76% 0.159 -0.139)
OKLCHoklch(58.76% 0.211 318.8)
XYZxyz(30.4666, 17.6358, 57.6649)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45CA #60CA45
analogous
#6C45CA #AF45CA #CA45A2
triadic
#AF45CA #CAAF45 #45CAAF
tetradic
#AF45CA #CA6C45 #60CA45 #45A2CA
square
#AF45CA #CA6C45 #60CA45 #45A2CA
split-complementary
#AF45CA #A2CA45 #45CA6C
monochromatic
#632174 #8C2FA3 #AF45CA #C375D8 #D8A4E5

Accessibility & contrast

On white

4.64
#AF45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF45CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45CA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45CA#FFFFFF#000000##FFFFFF
##AF45CA1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146ECE
Deuteranopia (green-blind)
#4D78C7
Tritanopia (blue-blind)
#AF5D82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af45ca;
/* rgb */ color: rgb(175, 69, 202);
/* oklch */ color: oklch(58.8% 0.211 318.8);
Tailwind
colors: {
  custom: {
    50: '#ca80db',
    500: '#af45ca',
    950: '#000000',
  },
}
SCSS
$custom: #af45ca;
$custom-light: #ca80db;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ca",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 287.82,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.21116,
    "h": 318.8
  },
  "luminance": 0.17634
}

Semantic roles & 50–950 ramp

primary
#AF45CA
secondary
#A4D299
accent
#DF4967
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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