#AF4CDD#AF4CDD

#AF4CDD is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.7% C 0.220 H 313.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDD
RGBrgb(175, 76, 221)
HSLhsl(281, 68%, 58%)
HSVhsv(281, 66%, 87%)
CMYKcmyk(20.8%, 65.6%, 0%, 13.3%)
CIE-LABlab(51.27, 62.56, -56.96)
CIE-LCHlch(51.27, 84.61, 317.68°)
OKLaboklab(60.72% 0.1504 -0.1604)
OKLCHoklch(60.72% 0.22 313.2)
XYZxyz(33.3125, 19.5043, 70.4025)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDD #7ADD4C
analogous
#674CDD #AF4CDD #DD4CC2
triadic
#AF4CDD #DDAF4C #4CDDAF
tetradic
#AF4CDD #DD674C #7ADD4C #4CC2DD
square
#AF4CDD #DD674C #7ADD4C #4CC2DD
split-complementary
#AF4CDD #C2DD4C #4CDD67
monochromatic
#6D1C93 #9326C6 #AF4CDD #C67FE7 #DDB3F1

Accessibility & contrast

On white

4.29
#AF4CDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF4CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDD#FFFFFF#000000##000000
##AF4CDD1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#427CDA
Tritanopia (blue-blind)
#AA698E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cdd;
/* rgb */ color: rgb(175, 76, 221);
/* oklch */ color: oklch(60.7% 0.220 313.2);
Tailwind
colors: {
  custom: {
    50: '#cb85e8',
    500: '#af4cdd',
    950: '#000000',
  },
}
SCSS
$custom: #af4cdd;
$custom-light: #cb85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cdd",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 221
  },
  "hsl": {
    "h": 280.966,
    "s": 68.075,
    "l": 58.235
  },
  "oklch": {
    "l": 0.6072,
    "c": 0.2199,
    "h": 313.2
  },
  "luminance": 0.19503
}

Semantic roles & 50–950 ramp

primary
#AF4CDD
secondary
#B8DFA6
accent
#EB3D74
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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