#AF57D3#AF57D3

#AF57D3 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.5% C 0.195 H 315.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF57D3
RGBrgb(175, 87, 211)
HSLhsl(283, 58%, 58%)
HSVhsv(283, 59%, 83%)
CMYKcmyk(17.1%, 58.8%, 0%, 17.3%)
CIE-LABlab(52.55, 55.40, -49.23)
CIE-LCHlch(52.55, 74.12, 318.37°)
OKLaboklab(61.46% 0.1376 -0.1379)
OKLCHoklch(61.46% 0.195 315)
XYZxyz(32.8434, 20.6345, 63.8682)
Luminance0.2063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57D3 #7BD357
analogous
#7157D3 #AF57D3 #D357B9
triadic
#AF57D3 #D3AF57 #57D3AF
tetradic
#AF57D3 #D37157 #7BD357 #57B9D3
square
#AF57D3 #D37157 #7BD357 #57B9D3
split-complementary
#AF57D3 #B9D357 #57D371
monochromatic
#6D248B #9331BC #AF57D3 #C687E0 #DDB8EC

Accessibility & contrast

On white

4.10
#AF57D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AF57D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57D3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57D3#FFFFFF#000000##000000
##AF57D31.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3278D7
Deuteranopia (green-blind)
#5580D0
Tritanopia (blue-blind)
#AC6C8D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af57d3;
/* rgb */ color: rgb(175, 87, 211);
/* oklch */ color: oklch(61.5% 0.195 315.0);
Tailwind
colors: {
  custom: {
    50: '#ca8be1',
    500: '#af57d3',
    950: '#000000',
  },
}
SCSS
$custom: #af57d3;
$custom-light: #ca8be1;
$custom-dark: #000000;
JSON
{
  "hex": "#af57d3",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 211
  },
  "hsl": {
    "h": 282.581,
    "s": 58.491,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61455,
    "c": 0.1948,
    "h": 315
  },
  "luminance": 0.20633
}

Semantic roles & 50–950 ramp

primary
#AF57D3
secondary
#B9DCAA
accent
#E24673
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57D3

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

Preview Lab → · Contrast checker → · Palette generator →

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