#AF40DD#AF40DD

#AF40DD is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.5% C 0.234 H 314.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF40DD
RGBrgb(175, 64, 221)
HSLhsl(282, 70%, 56%)
HSVhsv(282, 71%, 87%)
CMYKcmyk(20.8%, 71%, 0%, 13.3%)
CIE-LABlab(49.50, 67.54, -59.81)
CIE-LCHlch(49.50, 90.21, 318.47°)
OKLaboklab(59.45% 0.1629 -0.1687)
OKLCHoklch(59.45% 0.234 314)
XYZxyz(32.5615, 18.0023, 70.1521)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40DD #6EDD40
analogous
#6040DD #AF40DD #DD40BD
triadic
#AF40DD #DDAF40 #40DDAF
tetradic
#AF40DD #DD6040 #6EDD40 #40BDDD
square
#AF40DD #DD6040 #6EDD40 #40BDDD
split-complementary
#AF40DD #BDDD40 #40DD60
monochromatic
#69198A #9022BE #AF40DD #C574E6 #DBA8EF

Accessibility & contrast

On white

4.57
#AF40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AF40DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF40DD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40DD#FFFFFF#000000##000000
##AF40DD1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#3678DA
Tritanopia (blue-blind)
#AB618B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af40dd;
/* rgb */ color: rgb(175, 64, 221);
/* oklch */ color: oklch(59.5% 0.234 314.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ee8',
    500: '#af40dd',
    950: '#000000',
  },
}
SCSS
$custom: #af40dd;
$custom-light: #cb7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#af40dd",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 282.42,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.23449,
    "h": 314
  },
  "luminance": 0.18001
}

Semantic roles & 50–950 ramp

primary
#AF40DD
secondary
#AFDD9C
accent
#ED3B6F
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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