#AF42E0#AF42E0

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

Color values

HEX#AF42E0
RGBrgb(175, 66, 224)
HSLhsl(281, 72%, 57%)
HSVhsv(281, 71%, 88%)
CMYKcmyk(21.9%, 70.5%, 0%, 12.2%)
CIE-LABlab(49.97, 67.35, -60.76)
CIE-LCHlch(49.97, 90.71, 317.95°)
OKLaboklab(59.85% 0.1606 -0.1715)
OKLCHoklch(59.85% 0.235 313.1)
XYZxyz(33.0796, 18.3932, 72.3143)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42E0 #73E042
analogous
#6042E0 #AF42E0 #E042C2
triadic
#AF42E0 #E0AF42 #42E0AF
tetradic
#AF42E0 #E06042 #73E042 #42C2E0
square
#AF42E0 #E06042 #73E042 #42C2E0
split-complementary
#AF42E0 #C2E042 #42E060
monochromatic
#6B1890 #9220C5 #AF42E0 #C577E9 #DCABF1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF42E0#FFFFFF#000000##000000
##AF42E01.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)
#0071E5
Deuteranopia (green-blind)
#3479DD
Tritanopia (blue-blind)
#AA648D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af42e0;
/* rgb */ color: rgb(175, 66, 224);
/* oklch */ color: oklch(59.8% 0.235 313.1);
Tailwind
colors: {
  custom: {
    50: '#cb80ea',
    500: '#af42e0',
    950: '#000000',
  },
}
SCSS
$custom: #af42e0;
$custom-light: #cb80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af42e0",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 281.392,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59848,
    "c": 0.23494,
    "h": 313.1
  },
  "luminance": 0.18392
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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