#AF45D9#AF45D9

#AF45D9 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.225 H 314.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF45D9
RGBrgb(175, 69, 217)
HSLhsl(283, 66%, 56%)
HSVhsv(283, 68%, 85%)
CMYKcmyk(19.4%, 68.2%, 0%, 14.9%)
CIE-LABlab(49.96, 64.74, -56.80)
CIE-LCHlch(49.96, 86.12, 318.74°)
OKLaboklab(59.7% 0.1582 -0.1599)
OKLCHoklch(59.7% 0.225 314.7)
XYZxyz(32.3296, 18.3811, 67.4771)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D9 #6FD945
analogous
#6545D9 #AF45D9 #D945B9
triadic
#AF45D9 #D9AF45 #45D9AF
tetradic
#AF45D9 #D96545 #6FD945 #45B9D9
square
#AF45D9 #D96545 #6FD945 #45B9D9
split-complementary
#AF45D9 #B9D945 #45D965
monochromatic
#691C88 #9126BB #AF45D9 #C578E3 #DBABEE

Accessibility & contrast

On white

4.49
#AF45D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AF45D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D9#FFFFFF#000000##000000
##AF45D91.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#407AD6
Tritanopia (blue-blind)
#AB638A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af45d9;
/* rgb */ color: rgb(175, 69, 217);
/* oklch */ color: oklch(59.7% 0.225 314.7);
Tailwind
colors: {
  custom: {
    50: '#cb81e5',
    500: '#af45d9',
    950: '#000000',
  },
}
SCSS
$custom: #af45d9;
$custom-light: #cb81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d9",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 282.973,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59696,
    "c": 0.22495,
    "h": 314.7
  },
  "luminance": 0.1838
}

Semantic roles & 50–950 ramp

primary
#AF45D9
secondary
#B0DB9E
accent
#E93F6F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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