#AF40E0#AF40E0

#AF40E0 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.7% C 0.237 H 313.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF40E0
RGBrgb(175, 64, 224)
HSLhsl(282, 72%, 56%)
HSVhsv(282, 71%, 88%)
CMYKcmyk(21.9%, 71.4%, 0%, 12.2%)
CIE-LABlab(49.69, 68.13, -61.20)
CIE-LCHlch(49.69, 91.58, 318.07°)
OKLaboklab(59.65% 0.1625 -0.1728)
OKLCHoklch(59.65% 0.237 313.2)
XYZxyz(32.9648, 18.1636, 72.2760)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40E0 #71E040
analogous
#5F40E0 #AF40E0 #E040C1
triadic
#AF40E0 #E0AF40 #40E0AF
tetradic
#AF40E0 #E05F40 #71E040 #40C1E0
square
#AF40E0 #E05F40 #71E040 #40C1E0
split-complementary
#AF40E0 #C1E040 #40E05F
monochromatic
#6A178E #9120C3 #AF40E0 #C575E9 #DBA9F1

Accessibility & contrast

On white

4.53
#AF40E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF40E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF40E0
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40E0#FFFFFF#000000##000000
##AF40E01.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E5
Deuteranopia (green-blind)
#3279DC
Tritanopia (blue-blind)
#AA638C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af40e0;
/* rgb */ color: rgb(175, 64, 224);
/* oklch */ color: oklch(59.7% 0.237 313.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fea',
    500: '#af40e0',
    950: '#000000',
  },
}
SCSS
$custom: #af40e0;
$custom-light: #cb7fea;
$custom-dark: #000000;
JSON
{
  "hex": "#af40e0",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 281.625,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59652,
    "c": 0.2372,
    "h": 313.2
  },
  "luminance": 0.18163
}

Semantic roles & 50–950 ramp

primary
#AF40E0
secondary
#B1DF9D
accent
#EF3971
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF40E0

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

Preview Lab → · Contrast checker → · Palette generator →

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