#AF45D4#AF45D4

#AF45D4 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.220 H 316.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AF45D4
RGBrgb(175, 69, 212)
HSLhsl(284, 62%, 55%)
HSVhsv(284, 67%, 83%)
CMYKcmyk(17.5%, 67.5%, 0%, 16.9%)
CIE-LABlab(49.65, 63.74, -54.44)
CIE-LCHlch(49.65, 83.83, 319.50°)
OKLaboklab(59.38% 0.1586 -0.153)
OKLCHoklch(59.38% 0.22 316)
XYZxyz(31.6891, 18.1249, 64.1038)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D4 #6AD445
analogous
#6845D4 #AF45D4 #D445B1
triadic
#AF45D4 #D4AF45 #45D4AF
tetradic
#AF45D4 #D46845 #6AD445 #45B1D4
square
#AF45D4 #D46845 #6AD445 #45B1D4
split-complementary
#AF45D4 #B1D445 #45D468
monochromatic
#671E81 #8F29B3 #AF45D4 #C477DF #DAA8EB

Accessibility & contrast

On white

4.54
#AF45D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#AF45D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D4#FFFFFF#000000##000000
##AF45D41.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#4479D1
Tritanopia (blue-blind)
#AD6187
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af45d4;
/* rgb */ color: rgb(175, 69, 212);
/* oklch */ color: oklch(59.4% 0.220 316.0);
Tailwind
colors: {
  custom: {
    50: '#cb81e2',
    500: '#af45d4',
    950: '#000000',
  },
}
SCSS
$custom: #af45d4;
$custom-light: #cb81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d4",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 284.476,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59377,
    "c": 0.22033,
    "h": 316
  },
  "luminance": 0.18124
}

Semantic roles & 50–950 ramp

primary
#AF45D4
secondary
#ACD89C
accent
#E6426D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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