#AF48E1#AF48E1

#AF48E1 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.5% C 0.229 H 312.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF48E1
RGBrgb(175, 72, 225)
HSLhsl(280, 72%, 58%)
HSVhsv(280, 68%, 88%)
CMYKcmyk(22.2%, 68%, 0%, 11.8%)
CIE-LABlab(50.90, 65.11, -59.82)
CIE-LCHlch(50.90, 88.41, 317.42°)
OKLaboklab(60.54% 0.1544 -0.1688)
OKLCHoklch(60.54% 0.229 312.5)
XYZxyz(33.5847, 19.1859, 73.1536)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48E1 #7AE148
analogous
#6248E1 #AF48E1 #E148C7
triadic
#AF48E1 #E1AF48 #48E1AF
tetradic
#AF48E1 #E16248 #7AE148 #48C7E1
square
#AF48E1 #E16248 #7AE148 #48C7E1
split-complementary
#AF48E1 #C7E148 #48E162
monochromatic
#6D1996 #9321CB #AF48E1 #C67DEA #DDB1F2

Accessibility & contrast

On white

4.34
#AF48E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF48E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48E1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48E1#FFFFFF#000000##000000
##AF48E11.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#397BDE
Tritanopia (blue-blind)
#A9688F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af48e1;
/* rgb */ color: rgb(175, 72, 225);
/* oklch */ color: oklch(60.5% 0.229 312.5);
Tailwind
colors: {
  custom: {
    50: '#cb83eb',
    500: '#af48e1',
    950: '#000000',
  },
}
SCSS
$custom: #af48e1;
$custom-light: #cb83eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af48e1",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 280.392,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60535,
    "c": 0.22875,
    "h": 312.5
  },
  "luminance": 0.19185
}

Semantic roles & 50–950 ramp

primary
#AF48E1
secondary
#B8E1A4
accent
#EF3974
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48E1

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

Preview Lab → · Contrast checker → · Palette generator →

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