#AF48E0#AF48E0

#AF48E0 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.5% C 0.228 H 312.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF48E0
RGBrgb(175, 72, 224)
HSLhsl(281, 71%, 58%)
HSVhsv(281, 68%, 88%)
CMYKcmyk(21.9%, 67.9%, 0%, 12.2%)
CIE-LABlab(50.84, 64.90, -59.35)
CIE-LCHlch(50.84, 87.95, 317.56°)
OKLaboklab(60.47% 0.1545 -0.1674)
OKLCHoklch(60.47% 0.228 312.7)
XYZxyz(33.4487, 19.1315, 72.4373)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48E0 #79E048
analogous
#6348E0 #AF48E0 #E048C5
triadic
#AF48E0 #E0AF48 #48E0AF
tetradic
#AF48E0 #E06348 #79E048 #48C5E0
square
#AF48E0 #E06348 #79E048 #48C5E0
split-complementary
#AF48E0 #C5E048 #48E063
monochromatic
#6D1994 #9322C9 #AF48E0 #C67CE9 #DDB1F2

Accessibility & contrast

On white

4.35
#AF48E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AF48E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48E0
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48E0#FFFFFF#000000##000000
##AF48E01.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E4
Deuteranopia (green-blind)
#3B7BDD
Tritanopia (blue-blind)
#AA678F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af48e0;
/* rgb */ color: rgb(175, 72, 224);
/* oklch */ color: oklch(60.5% 0.228 312.7);
Tailwind
colors: {
  custom: {
    50: '#cb83ea',
    500: '#af48e0',
    950: '#000000',
  },
}
SCSS
$custom: #af48e0;
$custom-light: #cb83ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af48e0",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 224
  },
  "hsl": {
    "h": 280.658,
    "s": 71.028,
    "l": 58.039
  },
  "oklch": {
    "l": 0.6047,
    "c": 0.2278,
    "h": 312.7
  },
  "luminance": 0.19131
}

Semantic roles & 50–950 ramp

primary
#AF48E0
secondary
#B7E0A4
accent
#EE3A74
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48E0

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

Preview Lab → · Contrast checker → · Palette generator →

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